subject

Vào một ngày hè nóng nực, Nam và Mai cùng đến cửa hàng chọn mua một quả dưa hấu để giải khát, quả dưa có trọng lượng w kilogam (w nguyên dương). Nam và Mai rất thích những con số nguyên chẵn, do đó
họ chia quả dưa hấu thành hai phần sao cho mỗi phần có trọng lượng là một số nguyên chẵn (không bắt buộc
trọng lượng của hai phần phải bằng nhau).
Yêu cầu: Cho biết trước trọng lượng của quả dưa hấu là w(kg). Em hãy giúp Nam và Mai viết chương trình
kiểm tra việc chia quả dưa thành 2 phần theo điều kiện của Nam và Mai. Nếu chia được thì thông báo ra màn
hình nội dung “Chia duoc”, nếu không chia được thì thông báo ra màn hình nội dung “Khong chia duoc”.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
Aplan to budget time for studying and activities is referred to as a study routine. study habits. study skills. a study schedule.
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Technician a says that a shop towel should never be used to clean around the flange area before replacing an automatic transmission filter. technician b says that a dimpled transmission fluid pan can be repaired. who is right
Answers: 3
question
Computers and Technology, 23.06.2019 02:00
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
Ihave a singular monitor that is a tv for my computer. recently, i took apart my computer and put it back together. when i put in the hdmi cord and booted the computer to see if it worked, the computer turned on fine but the screen was blue with "hdmi no signal." i've tried everything that doesn't require buying spare parts, any answer is appreciated!
Answers: 1
You know the right answer?
Vào một ngày hè nóng nực, Nam và Mai cùng đến cửa hàng chọn mua một quả dưa hấu để giải khát, quả...
Questions
question
Mathematics, 03.08.2019 12:30
question
Mathematics, 03.08.2019 12:30
question
Biology, 03.08.2019 12:30
question
Biology, 03.08.2019 12:30
Questions on the website: 13722361