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 23:30
What is the digital revolution and how did it change society? what are the benefits of digital media?
Answers: 1
question
Computers and Technology, 23.06.2019 03:10
Acomputer has a two-level cache. suppose that 60% of the memory references hit on the first level cache, 35% hit on the second level, and 5% miss. the access times are 5 nsec, 15 nsec, and 60 nsec, respectively, where the times for the level 2 cache and memory start counting at the moment it is known that they are needed (e.g., a level 2 cache access does not even start until the level 1 cache miss occurs). what is the average access time?
Answers: 1
question
Computers and Technology, 23.06.2019 12:40
Curriculum exam to process a resident's payment, you must click on onesite payments home page. from the a. reports b. my settings o c.transactions o d. rent tab
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
Match the following errors with their definitions. a. #name b. #value c. #ref d. 1. when a formula produces output that is too lengthy to fit in the spreadsheet cell 2. when you enter an invalid cell reference in a formula 3. when you type text in cells that accept numeric data 4. when you type in a cell reference that doesn’t exist
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, 16.12.2021 18:30
question
Mathematics, 16.12.2021 18:30