032. Write a program to print table of a given number n in C language

#include<stdio.h>
#include<conio.h>
main()
{ 
 int i,n;
 clrscr();
 printf("Enter number : ");
 scanf("%d",&n);
 for(i=1;i<=10;i++)
	printf("%d X %d = %d\n",n,i,n*i);
 getch();
}

Leave a Reply

Your email address will not be published. Required fields are marked *