Make a program that prints out the first 8 multiples of a given integer y. Please use
for loop
#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;
}
Comments
Leave a comment