6th Mar 2022, 1:49 PM
Yash Pandya
2 Answers
+ 4
It's taking 5 inputs one by one and checking if the input is less than 3. If it is then it's doing nothing If it's not then it's adding 100 to the variable 'total' which is given the value 0 at first. And at last, it's printing the total.
6th Mar 2022, 2:09 PM
NEZ
NEZ - avatar
+ 3
The task is to take 5 person ages as input of int type. if age is less than 3 , ticket is free otherwise need to buy a ticket of cost 100. find total bill to pay for 5 tickets, and just output total.. https://www.sololearn.com/Discuss/2995213/?ref=app
6th Mar 2022, 2:08 PM
Jayakrishna šŸ‡®šŸ‡³