Sunday, November 20, 2011

PROGRAM MENCARI BILANGAN TERBESAR MENGGUNAKAN BAHASA PEMROGRAMAN PASCAL 7.1

PROGRAM CARI_BILANGAN_TERBESAR;
USES CRT;
VAR A,B,C:INTEGER;
BEGIN
CLRSCR;
WRITE('BILANGAN 1 : ');READLN(A);
WRITE('BILANGAN 2 : ');READLN(B);
WRITE('BILANGAN 3 : ');READLN(C);
IF (A=B) AND (B=C) AND (A=C) THEN WRITE('BILANGAN TERBESAR : ',A)
ELSE IF (A=B) AND (A>C) THEN WRITE(A)
ELSE IF (B=C) AND (B>A) THEN WRITE(B)
ELSE IF (A>B) AND (A>C) THEN WRITE(A)
ELSE IF (A>B) AND (A>C) THEN
WRITE(A)
ELSE IF (B>A) AND (B>C) THEN
WRITE(B)
ELSE
WRITE(C);
READLN;
END.

Categories:

http://www.resepkuekeringku.com/2014/11/resep-donat-empuk-ala-dunkin-donut.html http://www.resepkuekeringku.com/2015/03/resep-kue-cubit-coklat-enak-dan-sederhana.html http://www.resepkuekeringku.com/2014/10/resep-donat-kentang-empuk-lembut-dan-enak.html http://www.resepkuekeringku.com/2014/07/resep-es-krim-goreng-coklat-kriuk-mudah-dan-sederhana-dengan-saus-strawberry.html http://www.resepkuekeringku.com/2014/06/resep-kue-es-krim-goreng-enak-dan-mudah.html http://www.resepkuekeringku.com/2014/09/resep-bolu-karamel-panggang-sarang-semut-lembut.html

Copyright © Catatan Anis Syarifah | Powered by Anis Syarifah