penjumlahan dengan procedure

Uses wincrt;
Procedure Hitung (A,t,n:integer );
Var
    C:  integer;
Begin
    C := A + t+n ;
    Writeln ( ‘ Nilai C  = ‘, C ) ;
End ;

Var
    m,p,b : integer ;
BEGIN
     Write ( ‘ Nilai  X : ‘ ) ; readln ( m ) ;
     Write ( ‘ Nilai Y : ‘ ) ; readln ( p ) ;
      Write ( ‘ Nilai z : ‘ ) ; readln ( b ) ;
Hitung ( m, p,b ) ;
Readln ;
END.

Iklan

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s