Program Pembagian

program pertambahan;

uses wincrt;

var
   a, b : integer;
   c     : real;
begin
     write('Masukan nilai A : ');
     readln(a);
     write('Masukan nilai B : ');
     readln(b);
     c := a / b;
     writeln();
     writeln('Hasil : ',c:0:2);

readkey();

end.

0 comments:

Post a Comment

 
Copyright © . My Live Is Tutorial - Posts · Comments
Theme Template by BTDesigner · Powered by Blogger