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; }

18th Apr 2021, 12:39 AM
Abuzar Khan
Abuzar Khan - avatar
2 Antworten
+ 2
Abuzar Khan Put a semicolon after setw(20) function. (Line 19)
18th Apr 2021, 9:21 AM
Satyam Keshri
Satyam Keshri - avatar
0
You missed semicolon in line 19
18th Apr 2021, 1:35 AM
Michal Doruch