WAP to print the multiplication table of an integer given by the user

Write a program to print the multiplication table of an integer given by user using for loop

#include<stdio.h>

int main() {
	int i,n;
	printf("Enter any number: ");
	scanf("%d",&n);
	for(i=1;i<=10;i++)
		printf("%d x %d = %d\n",n,i,n*i);
	return 0;
}

Output

WAP to print the multiplication table of an integer given by the user
Multiplication of 3
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments