0

I have C++ problem

I'm using phone app and when I use "cin" it says "looks like your program needs input" and not text i wrote in "cout", can someone help me?

8th Jan 2018, 2:11 PM
Funda
Funda - avatar
6 odpowiedzi
+ 1
#include <iostream> using namespace std; int main() { int a; cout << "Please enter a number \n"; cin >> a; cout << a; return 0; }
8th Jan 2018, 2:31 PM
Funda
Funda - avatar
+ 1
for example and when i click run it says Looks like your program needs input and not Please enter a number
8th Jan 2018, 2:31 PM
Funda
Funda - avatar
+ 1
Thanks😁
8th Jan 2018, 2:38 PM
Funda
Funda - avatar