C program to print table of a given number
Code:
Output:
Enter the number you want to print the table of 5
5
10
15
20
25
30
35
40
45
50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\\C program to find table of a given number. | |
#include<stdio.h> | |
void main() | |
{ | |
int num,i; | |
printf("Enter the number you want to print table of :\t"); | |
scanf("%d",&num); | |
for(i=1;i<=10;i++) | |
{ | |
printf("\n\t%d * %d=%d",num,i,num*i); | |
} | |
} |
Enter the number you want to print the table of 5
5
10
15
20
25
30
35
40
45
50
Comments
Post a Comment
Feel free to leave a comment...