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
Linuxmania Linuxmania is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 392
Rep Power: 14
Linuxmania mempunyai hidup yang Normal
Default [TPW] bantu gan ada kesalahan

mohon bantuan nya ya suhu



bingung neh dimana salah nya






Code:

program tiket;
uses wincrt;
var kotiket,jetiket,jum,total: string;
hatiket :real;
begin
write('Masukan kode Tiket : ');readln(kotiket);
begin
if (kotiket = 'A' )or (kotiket = 'a') then
jetiket:='pesawat';
hatiket:=1000

else
if (kotiket = 'B' )or (kotiket = 'b') then
jetiket:='pesawat'
hatiket:=5000

writeln('Jenis Tiket =',jetiket,');
writeln('Harga Tiket =',hatiket,');
writeln('Banyak nya =');readln(jum);
total:= jum*hatiket

writeln('total =',total,);
end

trima kasih sebelum nya



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 02:15 PM.


no new posts