Suva Programming
Blog about C++ and other programming source code.
Pages
Home
Privacy Policy
Disclaimer
Saturday 25 January 2020
Multiplication table of a positive number in CPP
Source code:
#include<iostream>
using namespace std;
int main()
{
int x;
cout<<"Enter a positive integer: ";
cin>>x;
for(int z=1;z<=10;z++)
{
cout<<x<<"*"<<z<<"="<<x*z<<endl;
}
return 0;
}
Program output;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment