Posted by : Unknown Tuesday, 22 January 2013


Bagi teman-teman yang mau nyoba contoh program pangkat.
Silahkan copas aja listing di bawah ini :

program pangkat;
uses wincrt;
var
   a,n,i:integer;
   j:real;
begin
     i:=1;
     j:=1;
     writeln(' Program Pangkat  ');
     write('masukan nilai A : ');read(a);
     write('masukan nilai N : ');read(n);
     while i<=n do
     begin
     i:=i+1;
     j:=j*a;
     end;
     write('hasil pangkat   : ' ,j:0:0);    
end.


-->

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Popular Post

Ighi Katagiri. Powered by Blogger.

Followers

- Copyright © KATAGIRI -Robotic Notes- Powered by Blogger - Designed by Johanes Djogan -