C++ code to find Multiplication Table of a number using for loop
Sample Output :
Image View of Code:
- #include<iostream>
- using namespace std;
- int main()
- {
- int num;
- cout<<"Enter Number To Find Multiplication table ";
- cin>>num;
- for(int a=1;a<=10;a++)
- {
- cout<<num<<" * "<<a<<" = "<<num*a<<endl;
- }
- return 0;
- }
Sample Output :
Image View of Code:
0 comments:
Post a Comment