No products in the cart.

Accept the number of days from …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Accept the number of days from the user and calculate the charge for library according to following : Till five days : Rs 2/day. Six to ten days : Rs 3/day. 11 to 15 days : Rs 4/day After 15 days : Rs 5/day
  • 2 answers

Sourav Kundu 3 years, 1 month ago

days=int(input('enter the number of days:')) if (days<=5): print('library charge is',days*2) elif (days<=10): print('library charge is',days*3) elif (days<=15): print('library charge is',days*4) elif(days>15): print('library charge is ',days*5) else: print('invalid input')

Akhil K 3 years, 1 month ago

days=int(input('enter the number of days:')) if (days<=5): print('library charge is',days*2) elif (days<=10): print('library charge is',days*3) elif (days<=15): print('library charge is',days*4) elif(days>15): print('library charge is ',days*5) else: print('invalid input')
http://mycbseguide.com/examin8/

Related Questions

Write a program for swapping two numbers
  • 1 answers
Write a program for swapping two numbers?
  • 0 answers
What is alu
  • 1 answers
Define packages
  • 0 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App