A number is taken from user and its table upto n is displayed.
Select To use this code as it is.. select and copy paste this code into code.cpp file :)
- #include<iostream.h>
- #include<conio.h>
- void main()
- {
- clrscr();
- int n,m;
- cout<<"Please enter n: ";
- cin>>n;
- for (int i=1;i<=10;i++)
- //Coding by: Snehil Khanor
- //http://WapCPP.blogspot.com
- {
- m=n*i;
- cout<<n<<"*"<<i<<"="<<m<<endl;
- }
- getch();
- }
0 comments:
Post a Comment