Chapter - 4: The Loop Control Structure

Write a program to print the multiplication table of the number entered by the user. The table should get displayed in the following form:


E
Sections
6
Exercises

29 * 1 = 29
29 * 2 = 58 
...

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

© 2021 Garbage Valuegarbage value logo