Wednesday, October 19, 2011

Program:To print the table of number in c++




To print the table of a number
COde:

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

void main()
{
clrscr();
int n,i;
cout<<"\nEnter a Number :";
cin>>n;
for(i=1; i<=10; ++i)
cout<<"\n "<<n<<”*”<<I<<”= ”<<n*i;
getch();
}

Article by
Chief-Editor

He is a tech Enthusiast, an Altruist and calm mentor. He loves to code. He is also a creative graphic designer. Do check out his designfolio @ Jasmeet.asia If you like This post, you can follow me on Twitter.



For Further Reading,
C++ Program, Control Structures

0 comments:

Post a Comment