+ 1
begginer help me with this problem using code blocks
int num = 1; int number; while (num <= 5) { cin >> number; num++; } getting error expected unqualified-id before 'while'
4 Antworten
+ 2
Where is your main() function ??
+ 1
Just add your complete code here.
0
#include <iostream>
using namespace std;
int num = 1;
int number;
while(num <= 5)
{
cin >> number;
num++;
}
0
rookie mistake anyways thanks