+ 1
What is the problem with this program ---
#include <iostream> #include<string> using namespace std; int main() { int age; cin >>age; cout<<"you age is,""<<age; return 0; }
6 Answers
+ 4
Remove the double quotation marks at the end.
+ 2
instead I tried this.
#include <iostream>
using namespace std;
int main() {
int i;
cin>>i;
cout<<"your age is:"<<i;
return 0;
}
+ 2
md ibrahim i see the problem is already solved (double quotes removed) You have to be careful with those small things.
Keep on coding that's how you grow... encountering errors and learning how to fix them
+ 2
Thank you Micheal Ngwerume
+ 2
<<"
0
syntax error.
Remove the double quotes.