- 3
Anyone guess the output without running the code?
#include <iostream> using namespace std; int main(int argc, char *argv[]) { int num=1; while (num< 100) { num=num*3; cout << num <<endl; num++; } return 0; }
3 Answers
+ 1
Why?
+ 1
I got answer but it is not as expected Simon Sauter
+ 1
What do you get and what did you expect?