+ 2
how to put a range in if statement like if marks range from 40 to 99
3 odpowiedzi
+ 3
You code as follows if(marks >= 40 && marks <= 99){ // instruction goes here}
+ 1
if(40<=marks && 99>=marks)
0
if(marks>=40 && marks<=99)
{
-------------
----------------your statement
}