Pascal :: Contoh Penggunaan Statemen Case Of

Home » Komputer » Pemrograman » Pascal » Pascal :: Contoh Penggunaan Statemen Case Of
Pascal 17 Comments

Script Pascal berikut akan menampilkan 3 pilihan, masing-masing sebagai berikut :

Jika angka = 1, maka yang karakter akan tampil “satu”.
Jika angka = 2, maka yang karakter akan tampil “dua”.
Jika angka = 3, maka yang karakter akan tampil “tiga”.
Selain daripada itu akan menampilkan “Pilihan Salah!”

Program Angka;
uses wincrt;
var
a:integer;
begin
write('Angka (1-3) = ');readln(a);
writeln;
case a of
1:write('Satu');
2:write('Dua');
3:write('Tiga');
else
write('Pilihan Salah!');
end;
end.

17 thoughts on - Pascal :: Contoh Penggunaan Statemen Case Of

  • … [Trackback]

    […] Read More here|Read More|Read More Infos here|There you can find 63653 additional Infos|Informations on that Topic: blog.loksado.com/pascal-contoh-penggunaan-statemen-case-of […]

  • … [Trackback]

    […] Read More here|Read More|Read More Infos here|There you will find 59789 more Infos|Infos on that Topic: blog.loksado.com/pascal-contoh-penggunaan-statemen-case-of […]

  • … [Trackback]

    […] Find More on|Find More|Find More Informations here|There you will find 80560 more Informations|Infos on that Topic: blog.loksado.com/pascal-contoh-penggunaan-statemen-case-of […]

  • … [Trackback]

    […] Read More here|Read More|Read More Informations here|Here you will find 30921 more Informations|Infos to that Topic: blog.loksado.com/pascal-contoh-penggunaan-statemen-case-of […]

  • … [Trackback]

    […] Find More on|Find More|Read More Infos here|Here you will find 27440 additional Infos|Infos to that Topic: blog.loksado.com/pascal-contoh-penggunaan-statemen-case-of […]

  • … [Trackback]

    […] Read More here|Read More|Find More Infos here|There you will find 1307 more Infos|Infos to that Topic: blog.loksado.com/pascal-contoh-penggunaan-statemen-case-of […]

  • … [Trackback]

    […] Read More on|Read More|Read More Informations here|Here you can find 82654 more Informations|Informations on that Topic: blog.loksado.com/pascal-contoh-penggunaan-statemen-case-of […]

  • … [Trackback]

    […] Read More here|Read More|Find More Informations here|There you will find 82958 more Informations|Informations on that Topic: blog.loksado.com/pascal-contoh-penggunaan-statemen-case-of […]

  • … [Trackback]

    […] Read More here|Read More|Read More Infos here|Here you can find 79414 additional Infos|Infos on that Topic: blog.loksado.com/pascal-contoh-penggunaan-statemen-case-of […]

  • … [Trackback]

    […] Find More on|Find More|Read More Informations here|Here you can find 28018 more Informations|Infos to that Topic: blog.loksado.com/pascal-contoh-penggunaan-statemen-case-of […]

  • … [Trackback]

    […] Read More on|Read More|Read More Infos here|There you can find 78930 more Infos|Infos on that Topic: blog.loksado.com/pascal-contoh-penggunaan-statemen-case-of […]

  • … [Trackback]

    […] Read More here|Read More|Find More Informations here|Here you will find 87338 additional Informations|Informations on that Topic: blog.loksado.com/pascal-contoh-penggunaan-statemen-case-of […]

  • … [Trackback]

    […] Read More on|Read More|Read More Informations here|There you will find 14630 more Informations|Informations to that Topic: blog.loksado.com/pascal-contoh-penggunaan-statemen-case-of […]

LEAVE A COMMENT