+ 2

how to put a range in if statement like if marks range from 40 to 99

14th Mar 2017, 9:02 AM
Abhishek Kumar
Abhishek Kumar - avatar
3 odpowiedzi
+ 3
You code as follows if(marks >= 40 && marks <= 99){ // instruction goes here}
14th Mar 2017, 9:07 AM
Abdallah Hilal Galadanci
Abdallah Hilal Galadanci - avatar
+ 1
if(40<=marks && 99>=marks)
5th Aug 2018, 2:28 PM
Muhammed Bilal C A
Muhammed Bilal C A - avatar
0
if(marks>=40 && marks<=99) { ------------- ----------------your statement }
7th Aug 2018, 9:34 AM
Ajay
Ajay - avatar