Monday, February 16, 2015

C Program to print table of any number


#include<iostream.h>
#include<conio.h>


void main()
{
clrscr();
int i,n;
cout<<"Enter a ny number:";
cin>>n;
cout<<"

";



for(i=1;i<=10;++i)
cout<<" "<<n<<"*"<<i<<"="<<n*i<<"
";

getch();
}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.