-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontrol flow .cpp
More file actions
98 lines (62 loc) · 1.32 KB
/
Copy pathcontrol flow .cpp
File metadata and controls
98 lines (62 loc) · 1.32 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// IF-ELSE CONDITION
/*#include<iostream>
using namespace std;
int main(){
int budget ;
cout << "enter your budget "<<endl;
cin >> budget;
if(budget>2000000){
cout << "you can buy a scorpio"<< endl;
}
else
{ cout<<"you cant buy a scorpio "<< endl;
}
return 0;
}*/
// IF - ELSE-IF CONDITION
/*#include<iostream>
using namespace std ;
int main (){
int marks;
cout<< "enter your marks "<< endl;
cin>> marks;
if ( marks>=81 ){
cout<<" Grade A" << endl;
}
else if ( marks<=80 && marks>=75 ){
cout<<" Grade B" << endl;
}
else if ( marks<74 && marks>= 60){
cout<<" Grade C" << endl;
}
else if ( marks<60 && marks>=30){
cout<<" Grade D" << endl;
}
else {
cout << "You are Fail"<< endl;
}
return 0;
}*/
// NESTED IF
#include<iostream>
using namespace std ;
int main(){
int age ;
cout << "enter you age ";
cin>>age;
int weight;
cout<< "enter your weight";
cin>> weight;
if (age>10){
if (weight >50){
cout <<"you have a good bmi";
}
else {
cout <<"bhai tujhse nh ho payega";
}
}
else {
cout << "TU SUNDAY KO AANA ";
}
return 0 ;
}