Page 1
No::
Date :26 052024
2FLOW CONTROL
2- hat nbete
ituaticn.
dlrt cat afn unguiunlaná
(Rilatinal uatou
greahn dhan 6>5
6<5
nal 6=5
65
ghaton than on aguual to 6>=5
#inctude jostneam>
using namespace std;
int main() E
utput
nta
Cout <s (a >t) <<tndl;
Cout <sla s7) <s
(a<4) 4 1
(az4
(a=4)
Jnetun 0:
, \Page No: l2
Date:2< le 224
aguèal oealsu prfoum dgial churcalicn. nuail dlaiak
CAND) Cxpl &l cxp2 hus both tue.
I(OR) expi lly
CNOT) leKp Jala, la bu
nclude <octreorm> |6utputs
Using YaMes pace stdy
lint mainC) f
int age = 2t, salary = 950, JNeSult,
JNesult =(age >z 1k)4L(salary s0o);
Cout <<
JleSult = (age g=18) kl (salaryy>1000);
cout <s Nesult;
netunn 0;
3
4Include <iastncam> 0utput.
0sing namespeate std;
Int main() €
int age = 24 ,Nesult;
cout << lage >=18) <s endl;
Cout << ! Cage >= 30);
If.. else Statoment:
faly akijpud
ifCcondiin) {
itCode to eret
No::
Date :26 052024
2FLOW CONTROL
2- hat nbete
ituaticn.
dlrt cat afn unguiunlaná
(Rilatinal uatou
greahn dhan 6>5
6<5
nal 6=5
65
ghaton than on aguual to 6>=5
#inctude jostneam>
using namespace std;
int main() E
utput
nta
Cout <s (a >t) <<tndl;
Cout <sla s7) <s
(a<4) 4 1
(az4
(a=4)
Jnetun 0:
, \Page No: l2
Date:2< le 224
aguèal oealsu prfoum dgial churcalicn. nuail dlaiak
CAND) Cxpl &l cxp2 hus both tue.
I(OR) expi lly
CNOT) leKp Jala, la bu
nclude <octreorm> |6utputs
Using YaMes pace stdy
lint mainC) f
int age = 2t, salary = 950, JNeSult,
JNesult =(age >z 1k)4L(salary s0o);
Cout <<
JleSult = (age g=18) kl (salaryy>1000);
cout <s Nesult;
netunn 0;
3
4Include <iastncam> 0utput.
0sing namespeate std;
Int main() €
int age = 24 ,Nesult;
cout << lage >=18) <s endl;
Cout << ! Cage >= 30);
If.. else Statoment:
faly akijpud
ifCcondiin) {
itCode to eret