+ 1

int a = 11; int b = 12; int c = 40; if (a > 100 || b > 3) { System.out.println(a); } else { System.out.println(c); } 11

Bunu anlayamadım bana izah edebilir misiniz?

14th Jun 2020, 1:51 PM
Osman Seker
Osman Seker - avatar
2 odpowiedzi
+ 3
It says if a is greater than 100 or b is greater than 3 then print a ,else print c So a is not greater than 100 but b is greater than 3 so if condition evaluates to True and a is printed
14th Jun 2020, 2:26 PM
Abhay
Abhay - avatar
0
11
1st Jun 2021, 6:52 AM
Vasanth