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:
[สำเนา]คัดลอก!
A box of cookies can hold 24 cookies, and a container can hold 75 boxesof cookies. Write a program that prompts the user to enter the totalnumber of cookies, the number of cookies in a box, and the number ofcookie boxes in a container. The program then outputs the number ofboxes and the number of containers to ship the cookies. Note that eachbox must contain the specified number of cookies, and each containermust contain the specified number of boxes. If the last box of cookiescontains less than the number of specified cookies, you can discard it andoutput the number of leftover cookies. Similarly, if the last containercontains less than the number of specified boxes, you can discard it andoutput the number of leftover boxes.
การแปล กรุณารอสักครู่..

ผลลัพธ์ (
ภาษาอินโดนีเซี) 2:
[สำเนา]คัดลอก!
A box of cookies can hold 24 cookies, and the container can hold 75 boxes
of cake. Write a program that asks the user to enter the total
number of cookies, the number of cookies in a box, and the number of
boxes of cookies in a container. The program then outputs the number of
boxes and number of containers to ship cookies. Note that each
box must contain a certain amount of cookies, and each container
must contain a certain amount of boxes. When the last box of cookies
containing less than the number of cookies that are determined, you can throw it and
outputs the number of cookies the rest. Similarly, if the container last
containing less than the prescribed number of boxes, you can throw and
output residual sum of squares.
การแปล กรุณารอสักครู่..
