0
#include <iostream> using namespace std; int main() { int num = 1; while (num < 7) { cout << "Number: " << num
3 Réponses
+ 4
#include <iostream>
using namespace std;
int main()
{
int num = 1;
while (num < 7) {
cout << "Number: " << num <<endl;
num++;
}
return 0;
}
+ 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
+ 1
If it just included the closing curlybrace and a missing semicolon, it would cause an infinite loop.