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:
[สำเนา]คัดลอก!
Sebuah kotak cookie dapat menahan 24 cookie, dan wadah dapat menahan 75 kotak
kue. Menulis sebuah program yang meminta pengguna untuk memasukkan total
jumlah cookies, jumlah cookie dalam kotak, dan jumlah
kotak kue dalam sebuah wadah. Program ini kemudian output jumlah
kotak dan jumlah kontainer untuk kapal cookie. Perhatikan bahwa setiap
kotak harus berisi jumlah tertentu cookies, dan setiap kontainer
harus berisi jumlah tertentu kotak. Jika kotak terakhir cookies
mengandung kurang dari jumlah cookie yang ditentukan, Anda dapat membuangnya dan
output jumlah cookie sisa. Demikian pula, jika wadah terakhir
mengandung kurang dari jumlah kotak yang ditentukan, Anda dapat membuangnya dan
output jumlah kotak sisa.
การแปล กรุณารอสักครู่..
