fork download
  1. program ideone;
  2. var
  3. n, i : longint;
  4. x, potega : double;
  5.  
  6. begin
  7. readln(x);
  8. readln(n);
  9. potega:= 1;
  10.  
  11. for i:=1 to n do
  12. begin
  13. potega:= potega*x;
  14. end;
  15. writeln(x:0:2, ' do potegi ', n , ' = ', potega:0:2);
  16.  
  17. end.
Success #stdin #stdout 0.01s 5276KB
stdin
6
5
stdout
6.00 do potegi 5 = 7776.00