+ 2
Someone Please Help me how to write a command to show a number greater than something but less than the other
12 Answers
+ 3
print((n1+n2) //2)
+ 3
if you are checking the condition of multiple values at the same time, then i think you're referring to the 'when' statement.
+ 2
please tag the wanted language
+ 2
vinayak that's not my question
My question is if I wanted to print something if the value lies between certain values
Like in some games when you score something,according to your score they appreciate you like
well done,keep it up, excellent
That is what I asked who to write a code for something like that
+ 2
if 10<score<20:
print("good")
+ 2
Use && between them
+ 1
You use 'if ' statements
+ 1
https://code.sololearn.com/c2wKKMjfI9L2/?ref=app
Does this help?
+ 1
If a and b are number.
algorithm
1.first get two numbers.
2. compare both with comparison operator
3.print greatest number
if(a>b)
printf(a is greatest);
+ 1
Num>x && Num<y
0
You have to specify the language
- 1
Нр