0
Accepting user input user input and stores it in the variable a
#include<iostream> using namespce std; int main() { int a; cout<<"Please enter a number"<<endl; cin>>a; cout<<a; return 0; } working ???
2 Respostas
+ 6
#include<iostream>
using namespace std;
int main()
{
int a;
cout<<"Please enter a number"<<endl;
cin>>a;
cout<<a;
return 0;
}
yes it is working and give user input as output you missed 'a' key word in namespace
0
You can try your code in the coding section and run but not save it.
Good Luck!