0
What is error in this code can any one tell me? I am glad to see your response!
#include <iostream> #include <iomanip> using namespace std; int main() { int a; char c; float p; double d; cout<<"Enter first character of your name"; cin>>c; cout<<"Enter your age"; cin>>a; cout<<"Enter your salary"; cin>>p; cout<<"Enter your adhaar number"; cin>>d; cout<<"name"<<setw(5)<<"age"<<setw(20) <<"salary"<<setw(25)<<"adhaar/n"; cout<<c<<setw(5) <<a<<setw(20) cout<<p<<setw(25) <<d<<"/n"; return 0; }
2 Respuestas
+ 2
Abuzar Khan Put a semicolon after setw(20) function. (Line 19)
0
You missed semicolon in line 19