When I executed this particular code in Code playgound, it worked. But when I executed this in codeblocks, it didn't worked.why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

When I executed this particular code in Code playgound, it worked. But when I executed this in codeblocks, it didn't worked.why?

#include <iostream> using namespace std; int main() { int num = 1; while (num < 6) { cout << "Number: " << num << endl; num = num + 3; } return 0; }

14th Dec 2018, 11:45 AM
Taki Renzo
2 Answers
0
did you first build and then run the program in code blocks?
14th Dec 2018, 12:35 PM
Rishi Anand
Rishi Anand - avatar
0
yes
17th Dec 2018, 10:34 AM
Taki Renzo