Answer to Question #311472 in C for Daniel

Question #311472

Make a program that prints out the first 8 multiples of a given integer y. Please use 

for loop


1
Expert's answer
2022-03-14T13:04:43-0400
#include <stdio.h>


int main(){
	int y,i;
	printf("Enter y: ");
	scanf("%d",&y);
	
	for(i=0;i<=8;i++){
		printf("%d * %d = %d\n",i,y,i*y);
	}


	scanf("%d",&y);
	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