fork(2) download
  1. putstr ("enter number");
  2. var num = readline();
  3. putstr("enter exp");
  4. var exp = readline();
  5. var result = 1;
  6. var cnt = 1;
  7. while (cnt <= exp){
  8. result *= num;
  9. cnt++;
  10. }
  11. alert(result);// your code goes here
Runtime error #stdin #stdout #stderr 0.02s 4980KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
prog.js:1: ReferenceError: putstr is not defined