Minggu, 16 Januari 2011
16
[Pascal] Membuat program Konversi Suhu Celsius - Reamur - Fahrenheit
Walaupun amat sederhana, sobat wajib bisa membuat dan memahaminya! Oke
program konversi_suhu; uses crt; var C, F, R, K : real; pilihutama : string; pilihmenu : integer; A, B : string; begin clrscr; writeln('Program Konversi Suhu'); writeln; writeln('Pilih Program Konversi : '); writeln('A. Celcius ke Satuan Lainnya'); writeln('B. Satuan Lainnya ke Celcius'); writeln('Pilihan Anda (A/B): '); readln(pilihutama); if pilihutama=A then begin clrscr; writeln('Pilih Menu Konversi :'); writeln('1. Celcius ke Reamur'); writeln('2. Celcius ke Fahrenheit'); writeln('3. Celcius ke Kelvin'); writeln('Pilihan Anda (1/2/3): '); readln(pilihmenu); if pilihmenu=1 then begin writeln('Masukkan Suhu Dalam Celcius: '); readln(C); R:=(4/5)*C; writeln('Maka Suhu Hasil Konversi: ',R:0:2); end else if pilihmenu=2 then begin writeln('Masukkan Suhu Dalam Celcius: '); readln(C); F:=(9/5)*C+32; writeln('Maka Suhu Hasil Konversi: ',F:0:2); end else begin writeln('Masukkan Suhu Dalam Celcius: '); readln(C); K:=C+273; writeln('Maka Suhu Hasil Konversi: ',K:0:2); end; end else begin clrscr; writeln('Pilih Menu Konversi :'); writeln('1. Reamur ke Celcius'); writeln('2. Fahrenheit ke Celcius'); writeln('3. Kelvin ke Celcius'); writeln('Pilihan Anda (1/2/3): '); readln(pilihmenu); if pilihmenu=1 then begin writeln('Masukkan Suhu Dalam Reamur: '); readln(R); C:=(5/4)*R; writeln('Maka Suhu Hasil Konversi: ',C:0:2); end else if pilihmenu=2 then begin writeln('Masukkan Suhu Dalam Fahrenheit: '); readln(F); C:=(5/9)*F-32; writeln('Maka Suhu Hasil Konversi: ',C:0:2); end else begin writeln('Masukkan Suhu Dalam Kelvin: '); readln(K); C:=K-273; writeln('Maka Suhu Hasil Konversi: ',C:0:2) end; end; readkey; end.
Langganan:
Posting Komentar (Atom)
16 Komentar Untuk “[Pascal] Membuat program Konversi Suhu Celsius - Reamur - Fahrenheit”
Selasa, 12 April 2011 pukul 06.38.00 WIB
Nice Info Gun
Q dah Follow Kalo anda waktu mohon follow balik gan ya Di tunggu
Selasa, 12 April 2011 pukul 15.12.00 WIB
@khoiri oke gan,,, langsung meluncur ke tkp.......
Sabtu, 11 Mei 2013 pukul 02.18.00 WIB
This article is in fact a good one it helps new net visitors, who are wishing in
favor of blogging.
Look at my site :: minecraft account
Kamis, 30 Mei 2013 pukul 09.01.00 WIB
This is very interesting, You are a very skilled blogger.
I have joined your feed and look forward to seeking more of your magnificent post.
Also, I have shared your web site in my social networks!
Feel free to visit my website Oph Crack
Kamis, 30 Mei 2013 pukul 11.01.00 WIB
Heya i am for the primary time here. I found this board and I find It
truly helpful & it helped me out much. I hope to provide something again
and aid others like you aided me.
Look at my blog post ... Hack twitter
Selasa, 04 Juni 2013 pukul 09.00.00 WIB
Why users still make use of to read news papers when in this technological globe everything is accessible on web?
My web blog - Free Playstation Network Codes
Selasa, 04 Juni 2013 pukul 23.04.00 WIB
If some one needs to be updated with most up-to-date
technologies after that he must be pay a visit this web page and be
up to date daily.
Check out my web blog dragonvale game download computer
Rabu, 05 Juni 2013 pukul 22.23.00 WIB
After I originally commented I appear to have clicked on the -Notify
me when new comments are added- checkbox and now every time a comment is added
I recieve 4 emails with the exact same comment. Perhaps there is an
easy method you can remove me from that service? Appreciate it!
Also visit my web blog - funniest picture captions
Jumat, 07 Juni 2013 pukul 11.42.00 WIB
trimaksih ya
saya udh coba gunakan pakai free pascal tp masih eror
Jumat, 07 Juni 2013 pukul 14.19.00 WIB
Hi! I know this is kinda off topic but I'd figured I'd ask.
Would you be interested in exchanging links or maybe guest writing a blog post
or vice-versa? My site addresses a lot of the same topics as yours
and I feel we could greatly benefit from each other. If you might
be interested feel free to shoot me an email.
I look forward to hearing from you! Terrific blog by the way!
my webpage - funny pictures of black people
Minggu, 09 Juni 2013 pukul 09.53.00 WIB
Ні thеre it's me, I am also visiting this site on a regular basis, this web site is genuinely fastidious and the people are in fact sharing nice thoughts.
Here is my blog Pirates Games
Minggu, 09 Juni 2013 pukul 10.53.00 WIB
-Tаp the right cloud to make the rаin fall and flower ωill then bloоm.
If you gеt hookеd on this game chеck out our Robo Dеfеnѕe Guіde for some tіps
and tricks. There are numеrоus persons ωhο believе wholeheartedly that thеse pictures оf adult and infant aliеns аre authеntic while othеrs belіeve that they arе elaborate pranks.
Takе a looκ at my blog :: Aliens breaking news
Selasa, 11 Juni 2013 pukul 20.22.00 WIB
Thank you for the auspicious writeup. It in fact
was a amusement account it. Look advanced to far added agreeable from
you! By the way, how can we communicate?
Feel free to surf to my website how to get rich fast
Selasa, 11 Juni 2013 pukul 22.54.00 WIB
I do accept as true with all the concepts you have presented to your post.
They're really convincing and can definitely work. Nonetheless, the posts are too quick for novices. May just you please extend them a bit from subsequent time? Thank you for the post.
Here is my weblog - MineCraft Premium Generator
Senin, 17 Juni 2013 pukul 01.58.00 WIB
Its like you read my mind! You appear to know
a lot about this, like you wrote the book in it or something.
I think that you could do with some pics to drive the
message home a bit, but other than that, this is wonderful blog.
A fantastic read. I will definitely be back.
Here is my website: Play Minecraft For Free
Senin, 17 Juni 2013 pukul 06.57.00 WIB
My partner and I stumbled over here from a different website
and thought I might as well check things out. I like what I see so i am just following you.
Look forward to exploring your web page repeatedly.
Feel free to surf to my page ... Bypass Sharecash And Other Surveys
Posting Komentar
Berikan komentar positif tentang artikel yang sederhana ini niscaya sobat akan mendapatkan balasannya. Hehehe