healthy greeting for this time my blogger friend wrote an article titled how to make multiplication program in C. Codding is only made when cranky because confusion and dizziness makaknya so cranky Codding hehehe. . okeh just the way it is quite easy
Her logic: If we enter a number it will show the number of multiplication.
Good Luck
Her logic: If we enter a number it will show the number of multiplication.
#include<stdio.h>The output results as shown below:
main() {
int a;
printf("masukkan bilangan = ");
scanf("%d",&a);
printf(" 1 x %d = %d\n",a,1*a);
printf(" 2 x %d = %d\n",a,2*a);
printf(" 3 x %d = %d\n",a,3*a);
printf(" 4 x %d = %d\n",a,4*a);
printf(" 5 x %d = %d\n",a,5*a);
printf(" 6 x %d = %d\n",a,6*a);
printf(" 7 x %d = %d\n",a,7*a);
printf(" 8 x %d = %d\n",a,8*a);
printf(" 9 x %d = %d\n",a,9*a);
printf(" 10 x %d = %d\n",a,10*a);
return 0 ;
}