0

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

23rd May 2019, 5:22 AM
alif sadam
alif sadam - avatar
3 Respuestas
+ 4
#include <iostream> using namespace std; int main() { int num = 1; while (num < 7) { cout << "Number: " << num <<endl; num++; } return 0; }
23rd May 2019, 12:32 PM
Bodan Talev
Bodan Talev - avatar
+ 2
Please ... 1. Explain your situation, I don't see any question but a truncated code here. 2. Do not write code on Question section, it will be truncated due to character limits. 3. Avoid writing codes in Description section if the code is long, it will also end up getting truncated from character limits. 4. At least specify the language in Relevant Tags. Take a look at these guides for making a good post: https://www.sololearn.com/Discuss/333866/?ref=app
23rd May 2019, 6:00 AM
Ipang
+ 1
If it just included the closing curlybrace and a missing semicolon, it would cause an infinite loop.
23rd May 2019, 5:39 AM
Seb TheS
Seb TheS - avatar