10 likes | 170 Views
ใบงานที่ 3 การทำสูตรคูณ #include<stdio.h> main() { int num; clrscr(); scanf("%d",&num); printf("%d*1=%d<br>",num,1*num); printf("%d*2=%d<br>",num,2*num); printf("%d*3=%d<br>",num,3*num); printf("%d*4=%d<br>",num,4*num); printf("%d*5=%d<br>",num,5*num);
E N D
ใบงานที่ 3 การทำสูตรคูณ #include<stdio.h> main() { int num; clrscr(); scanf("%d",&num); printf("%d*1=%d\n",num,1*num); printf("%d*2=%d\n",num,2*num); printf("%d*3=%d\n",num,3*num); printf("%d*4=%d\n",num,4*num); printf("%d*5=%d\n",num,5*num); printf("%d*6=%d\n",num,6*num); printf("%d*7=%d\n",num,7*num); printf("%d*8=%d\n",num,8*num); printf("%d*9=%d\n",num,9*num); printf("%d*10=%d\n",num,10*num); printf("%d*11=%d\n",num,11*num); printf("%d*12=%d\n",num,12*num); getch(); }_