A box of cookies can hold 24 cookies, and a container can hold 75 boxes
of cookies. Write a program that prompts the user to enter the total
number of cookies, the number of cookies in a box, and the number of
cookie boxes in a container. The program then outputs the number of
boxes and the number of containers to ship the cookies. Note that each
box must contain the specified number of cookies, and each container
must contain the specified number of boxes. If the last box of cookies
contains less than the number of specified cookies, you can discard it and
output the number of leftover cookies. Similarly, if the last container
contains less than the number of specified boxes, you can discard it and
output the number of leftover boxes.
ผลลัพธ์ (
แอลเบเนีย) 1:
[สำเนา]คัดลอก!
Një kuti e cookie-t mund të mbajë 24 cookies, dhe një enë mund të mbajë 75 kutitë
e cookies. Shkruaj një program që bën përdoruesin të hyjë në total të
numrit të cookie-t, numri i cookie-t në një kuti, dhe numri i
kutive të cookie në një enë. Programi më pas e nxjerr numrin e
kutive dhe numrin e kontejnerëve të transportuar cookies. Vini re se çdo
kuti duhet të përmbajë numër të caktuar të cookie-t, dhe çdo enë
duhet të përmbajë numër të caktuar të kutive. Nëse kutia e fundit e cookie
përmban më pak se numri i cookie-t specifikuara, ju mund të hidhni atë dhe
prodhimi i numrit të cookie-t mbetura. Në mënyrë të ngjashme, nëse enë fundit
përmban më pak se numri i kutive të caktuara, ju mund të hidhni dhe
prodhimit numri i kutive të mbetura.
การแปล กรุณารอสักครู่..
