+ 1
Can anyone explain this ques in detail?
2 odpowiedzi
+ 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.
+ 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