-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
52 lines (36 loc) · 1.09 KB
/
main.cpp
File metadata and controls
52 lines (36 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#include <iostream>
using namespace std;
int main() {
string Name;
short int Age;
string City;
string Country;
float MonthlySalary;
char Gender;
bool IsMarried;
cout << "Please enter Your Name?" << endl;
cin >> Name;
cout << "Please enter Your Age?" << endl;
cin >> Age;
cout << "Please enter Your City?" << endl;
cin >> City;
cout << "Please enter Your Country?" << endl;
cin >> Country;
cout << "Please enter Your Monthly salary?" << endl;
cin >> MonthlySalary;
cout << "Please enter your Gender M/F?" << endl;
cin >> Gender;
cout << "Are you Married 1/0 ?" << endl;
cin >> IsMarried;
cout << "******************************************************\n\n";
cout << "Name: " << Name << endl;
cout << "Age: " << Age << endl;
cout << "City: " << City << endl;
cout << "Country: " << Country << endl;
cout << "Monthly Salary: " << MonthlySalary << endl;
cout << "Yearly Salary: " << MonthlySalary * 12 << endl;
cout << "Gender: " << Gender << endl;
cout << "Married: " << IsMarried << endl << endl;
cout << "******************************************************";
return 0;
}