Answer to Question #274812 in C for Amu Raj

Question #274812

Write a C program to input a number from user and print multiplication table of the given number using for loop.

1
Expert's answer
2021-12-06T05:27:22-0500
#include <stdio.h>
#include <stdlib.h>


int main(){
	int number,i;
	printf("Input the number: ");
	scanf("%d",&number);
	
	for(i=1;i<=10;i++){
		printf("%d X %d = %d\n",number,i,(i*number));	
	}


	getchar();
	getchar();
	return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS