-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlab9_3.cpp
48 lines (48 loc) · 893 Bytes
/
lab9_3.cpp
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
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
int main()
{
int age,height,bounty;
string cha;
cout<<"Enter your age: ";
cin>>age;
if(age<=25){
cout<<"Enter your height: ";
cin>>height;
if(height<100)
{
cha="Chopper";
}else if(height<180)
{
cha="Usopp";
}else
{
cout<<"Enter your bounty: ";
cin>>bounty;
if(bounty>1.1*1e9)
{
cha="Zoro";
}else
{
cha="Sanji";
}
}
}else if(age<=60)
{
cout<<"Enter your bounty: ";
cin>>bounty;
if(bounty>5*1e8)
{
cha="Jinbe";
}else
{
cha="Franky";
}
}else
{
cha="Brook";
}
cout<<"Your character = "<<cha;
}