Read the values a,b and c.Add them and after addition check if it is in the range of 100 and 200 or not. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Read the values a,b and c.Add them and after addition check if it is in the range of 100 and 200 or not.

Print "The sum is between"or"The sum is out of range". Run time output: 68 55 31 Output: The sum is between 155

2nd May 2022, 9:34 AM
Madhan vp
5 Answers
2nd May 2022, 10:05 AM
Madhan vp
+ 1
Good one.. It's very close.. According to task, it asked to print "The sum is out of range" in else part.. Also check is 100, 200 are inclusive or not..
2nd May 2022, 10:11 AM
Jayakrishna 🇮🇳
+ 1
Try to use <= , >= instead of <, > And print else part according to description..
2nd May 2022, 10:13 AM
Jayakrishna 🇮🇳
0
Where is your try? Try yourself first and post your attempt if unsolved....
2nd May 2022, 9:37 AM
Jayakrishna 🇮🇳
0
When I validate this the testcase is not in 100percnetage
2nd May 2022, 10:06 AM
Madhan vp