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?
6 odpowiedzi
+ 1
#include <iostream>
using namespace std;
int main()
{
int a;
cout << "Please enter a number \n";
cin >> a;
cout << a;
return 0;
}
+ 1
for example and when i click run it says Looks like your program needs input and not Please enter a number
+ 1
Thanks😁