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:
How can i do it with goto statement?
ReplyDeletePrint Table of any Number in C++
ReplyDeleteThanks for sharing this code. It is very simple and easy.
Thanks
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThanks..
ReplyDeletetufi nayo
ReplyDeletetkx
ReplyDeleteIt's good tq
ReplyDeletethanks
ReplyDeleteEasy programs
ReplyDeleteAwesome
ReplyDelete