C Lang: Program to print the following pattern- 1 12 123 1234


#include<stdio.h>
#include<conio.h>
void main()
{
int n, i;
clrscr();
printf("Enter any number =");
scanf("%d",&n);

for(i=1;i<=10;i++)
{
printf("%d X %d = %d \n",n,i,n*i);
}
getch();
}


Comments

Post a Comment

Popular Posts