Computer Science, asked by ROWDYRAM510, 2 months ago

A shopkeeper sold n packets of water bottles in a day. Write a program to input number of packets (n) and display how many dozens of packets and how many extra packets the shopkeeper sold.

Answers

Answered by santdas36
0

#python3

bottles = int(input('enter no of bottles sold\n'))

dozens = bottles // 12

remaining = bottles % 12

print ('You sold', dozens, 'dozens of bottles')

if remaining:

print('and an extra of', remaining, 'bottle(s)')

Similar questions
Math, 1 month ago