Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
SinggahDapur SinggahDapur is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 348
Rep Power: 15
SinggahDapur mempunyai hidup yang Normal
Default [Cendol Inside] help me tugas C error di "MOD" ane kurang ngerti

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

</div>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Terkait
Thread Thread Starter Forum Replies Last Post
[ASK] Cara Burn File Kapasitas diatas 20GB "cendol inside" Rudi2475 Shareware & Freeware 0 24th October 2012 02:37 PM
(reg) &quot;cendol inside&quot; software email scraper dan kirim massal SiJampang1 Shareware & Freeware 0 24th October 2012 02:19 PM
Humor, lucu kisa "waria & dukun cabul" cendol inside wendycagur Jokes 0 9th June 2012 11:14 AM
Kecewa Dengan Thread Yang Berkedok &quot;CENDOL INSIDE&quot; jokowikotak Lounge 0 27th May 2012 03:33 PM

 


All times are GMT +7. The time now is 05:58 PM.