programming in c/c++
App type of stuff
Code Competitions
Coding competition
Tuesday, 14 May 2013
program to print tables from 2 to entered number by user.
#include<conio.h>
#include<stdio.h>
void main()
{
int a,j,i;
clrscr();
printf("\n\n\t\t Enter the number: ");
scanf("%d",&a);
for(j=2;j<=a;j++)
{
for(i=0;i<=10;i++)
{
printf("\n%d * %d = %d",j,i,(j*i));
}
printf("\n");
}
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment