Help pls. Very stressed over this as its either ridiculously simple or inherent to codeblocks.
Hi So basically this is my code; (very simple) im beginner! #include <iostream> using namespace std; int main () int num = 1; while (num < 6) (cout << "number: " << num << endl ; num = num + 1); return 0; and these are my bugging errors; ||=== Build: Debug in Conditional2 (compiler: GNU GCC Compiler) ===| C:\Users\Andrew\CodeBlocks\MinGW\bin\Conditional2\main.cpp|7|error: expected initializer before 'int'| C:\Users\Andrew\CodeBlocks\MinGW\bin\Conditional2\main.cpp|8|error: expected unqualified-id before 'while'| C:\Users\Andrew\CodeBlocks\MinGW\bin\Conditional2\main.cpp|10|error: 'num' does not name a type| C:\Users\Andrew\CodeBlocks\MinGW\bin\Conditional2\main.cpp|11|error: expected unqualified-id before 'return'| ||=== Build failed: 4 error(s), 0 warning(s) (0 minute(s), 7 second(s)) ===| Any help, Id be most grateful. Thanks!! Andrew