0

#include <iostream> using namespace std; int main() { int num = 7; while (num > 6) { cout << "Number: " << num;

why it isn't running

25th Apr 2018, 6:22 AM
Aditya Mehta
Aditya Mehta - avatar
3 Answers
+ 2
#include <iostream> using namespace std; int main() { int num = 7; while (num > 6) { cout << "Number: " << num; return 0; } } you miss to put close brace
25th Apr 2018, 6:28 AM
MsJ
MsJ - avatar
0
yes the end brace
25th Apr 2018, 6:32 AM
Elliot
Elliot - avatar
0
thanx
25th Apr 2018, 6:38 AM
Aditya Mehta
Aditya Mehta - avatar