0

What is the Difference between if(age < 19) and if(age <= 19)?

14th Mar 2016, 9:05 AM
Ali
Ali - avatar
8 Antworten
+ 8
if(age < 19) is executed when value age is less than 19 but if(age<=19) is executed when value of age is equal to 19 or less than 19
13th Jun 2016, 5:19 PM
DJ Shiva & DJ Baba Shiv-Shekhar
DJ Shiva & DJ Baba Shiv-Shekhar - avatar
+ 4
if(age<19) = 18,17,16... if(age<=19) = 19,18,17,16...
9th Apr 2016, 2:54 AM
Gustavo Velozo
Gustavo Velozo - avatar
+ 2
< is for less than as <= for less than or equal too
30th Jun 2016, 6:20 AM
Nitin Kumar
Nitin Kumar - avatar
0
if(age < 19) is equal to check if age is less than 19 if(age <= 19) is equal to check if age is less or equal than 19, age can be 19 or less than
15th Mar 2016, 8:10 PM
Nemanja Petrovic
Nemanja Petrovic - avatar
0
if(age<19) means if condition is executed when value age is less than 19.if(age<=19) means age value is equal 19 or less.
27th Jun 2016, 4:23 PM
Md. Abdullah Al Mamun
Md. Abdullah Al Mamun - avatar
0
one is inclusive of 19 while other is exclusive of 19...
8th Jul 2016, 4:09 PM
Rahul Kumar
Rahul Kumar - avatar
0
age<19 will consider numbers less than 19 but age<=19 will consider 19 as well as the numbers less than 19
13th Jul 2016, 2:01 PM
Shreya Khandelwal
0
if (age <19) it will be true until value of age is 18 or less if (age <=19) it will be true until value of age is 19 or less
26th Sep 2016, 3:51 PM
Kashish Gupta
Kashish Gupta - avatar