Professional Documents
Culture Documents
Loops 1
Loops 1
Loops 1
else
if
while loop
loop
for
11 If else
budget 73K Shimla
3K Red
budget fort
false Red
budget a
foot
true
Coonan I
if
Il statement I
if condh true Statement1
Quiz 2
int 2 709 false
227031
if
System out pointer
if else
else
System out pointer else
a Read and check number is even or odd
a number
if
divisible 2 remainder is
even no
by g ni 2 so
odd no not divisible by 2
4
if ni 2 o
else h
System out pointin odd
Illogical operator 21 it
and operator 22
22 is
false
dominated Conan I Condh2 Ans
T T T
T T T
T 7 F
F F F
3 Condn
int 2 50
int
y 393false
n 6021 2074
if y
so.p if if
else I
s op else
08 operator 11
II is true
dominated Conan I Condh2 ans
T T
T
T T
T
T T T
F F
F
3 Condn
n 4 divisible
else h
system out pointla not divisible 79
pathmark t
marks 370
2 80
avg
A Statement2 skip
else
if condn2
conanz
É remaining if else
statement2
false check rent and
else 3 I
if 4
enc statement3 Skip
11Statement3
am
ye remaining if else
3
false execute else
else f
11Statement4
J
Comparison
true true
I Conant I
if Conant
if
Ilstatements Ilstatement I
3
Icona cononal
if else
if
Ilstatement 2 11Statement 2
3 3
cont elseif condo l
if
Ilstatement 3 th
3
condith elseif condry l
if
muggy Ilstatement y
3
I t
Statements statement1
Statements
d Man 3 numbers
of
Given 3 numbers Point man out of these
En a b c ans
6 3 4 6
8 3 10 no
12 4 4 12
13 10 13 13
8 6 8 8
11 At It 11
MPsuedo Code
scanner son new Scanner system.in
int a son neat Intl
int b son neat Intl
a b c
int c sch nest Intl 13101in
A 2 b 22 as c
b 22 h a twins
if
a a c
S o p a
be a 22 be c
else b both stains
S
if s
a
o p
C wins
else f
s o p c
3
Break till 9 25PM
I Into to loops
Point all the numbers
from 1 to 5
loop a
for
dowhiten
Y
site
3 4 T 4
J T 5
6 7
while 1 574
5 T J
int i 5 10 F
while 1071 berit
systemout point i
Quiz 4 i 9 5 Point
T I
int it 3 T 3
while 5 L s F
berit
Systemout point it D
Fitz
3
Quiz 5
int is i i as Point
while i 5 4 1 I
exit
System out point i
itt
3
Quiz 6 i 92 5 Point
int 9 19 I T t
while Cic 5 I 1 T I
I s t
II i
I
n
1
Quiz 7
inti O
i ite I T t
3 2 T O
5 T I
6 F
Genet