fork(1) download
  1. program k_do_n_tej;
  2. var i,k,n,y: integer;
  3.  
  4. begin
  5. read(k, n);
  6. write(k,'^',n,'=');
  7.  
  8. y := 1;
  9. for i := 1 to n do
  10. y := y * k;
  11.  
  12. writeln(y)
  13. end.
Success #stdin #stdout 0s 5288KB
stdin
5 5
stdout
5^5=3125