Question #311472

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

for loop


Expert's answer

#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!

LATEST TUTORIALS
APPROVED BY CLIENTS