Answer to Question #274433 in C for Asif

Question #274433

3. 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-02T00:38:09-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