// readline() - эта хуита НЕ читает введенные данные по порядку var num = 2; var exp = 10; var result = 1; var cnt = 1; while (cnt <= exp){ result *= num; cnt++; } print(result);// your code goes here
Standard input is empty
1024
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!