hello i am new to c++ and i am using code blocks to learn it. i typed the following code:
#include <iostream>
using namespace std;
int main() {
int x=1;
int number;
while (x<=5){
cin >> number;
x++;
}
return 0;
}
the cin>> doesn't seem to work i.e the console box appears but i can't input any values
please help
#include <iostream>
using namespace std;
int main() {
int x=1;
int number;
while (x<=5){
cin >> number;
x++;
}
return 0;
}
the cin>> doesn't seem to work i.e the console box appears but i can't input any values
please help