|
Go to Page... |
Post Reply |
Tweet | Thread Tools |
#1
|
|||
|
|||
![]()
Quote: #include int main() { short int jmlbungkus; short int jmlcoklat; short int coklatgratis; short int sisa; short int totalcokgratis; printf(" Masukan jumlah bungkus permen ? :"); scanf("%d",& jmlbungkus); do { } while (jmlcoklat>0 or jmlcoklat>1); coklatgratis= jmlbungkus / 2; sisa= jmlbungkus MOD 2 ; jmlbungkus=coklatgratis+sisa; totalcokgratis= coklatgratis+jmlcoklat; printf("%d",totalcokgratis); return 0; } yang di bold gan ... ane lupa lagi MOD itu gimana ??/ hehehehe pokoknya jmlbungkus dibagi terus 2 ? tadi ane ga konsen pas dosen nerangin ![]() ![]() help me gan melon inside Terkait:
|
Sponsored Links | |
Space available |
Post Reply |
|