Let's start coding:
//Program to print table of any number
#include<stdio.h> #include<conio.h> void main() { int i,no,table=1; clrscr(); printf("Enter any number : "); scanf("%d",&no); printf("Table of %d \n",no); for(i=1;i<=10;i++) { table=no*i; printf("%d",table); printf("\n"); } getch(); }
Output
Enter any number :
Table of 7
7
14
21
28
35
42
49
56
63
70
BIG DISCOUNT