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 21st November 2011
PHPmaster PHPmaster is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 332
Rep Power: 14
PHPmaster mempunyai hidup yang Normal
Default [ask] program pascal if then

gini gan ane kan lagi nyoba suatu program pascal IF THEN ELSE,



nah ane udah coba tapi kok yang keluar beda gan..

nih codingan ane udah sampe sini gan..













yang aneh kalo ane input angka 80 atau lebih dari 50 selalu aja semuanya hasilnya D.





mohon pencerahan agan" sekalian ya..





</div>

Reply With Quote
  #2  
Old 22nd November 2011
REGIONALBALI's Avatar
REGIONALBALI REGIONALBALI is offline
Member Aktif
 
Join Date: Feb 2011
Posts: 239
Rep Power: 0
REGIONALBALI mempunyai banyak pengalamanREGIONALBALI mempunyai banyak pengalamanREGIONALBALI mempunyai banyak pengalamanREGIONALBALI mempunyai banyak pengalamanREGIONALBALI mempunyai banyak pengalamanREGIONALBALI mempunyai banyak pengalamanREGIONALBALI mempunyai banyak pengalaman
Default

Hahaha , ya ialah ndan.. kondisi ifnya yang salah..

if nilai >=85 then p:="A" // dpet nilai A

kondisi kedua

if nilai >=75 && <=85 p:="B" // kondisi dapet nilai B ..

BEGITU LOH Ndan...

SALAM KODING
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


 


All times are GMT +7. The time now is 07:55 PM.


no new posts