Write a program to calculate the fine to be paid a library based no: of days late the book book was returned. (Input the no: of days late.) first five days 3 rupees,next 7 days 5 rupees, next 5days 7 rupees ,less than 17 days 10 rupees
Answers
Answered by
0
Explanation:
as far as i understood it should be as below
if dayslate<=5 ,then print Fine to be paid : 3 rupees
else if dayslate<=12 then Fine to be paid : 8 rupees
else if daylate==17 then Fine to be paid : 15 rupees
else if daylate <17 then Fine to be paid : 10 rupees
maybe I am right
Similar questions