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:30
On the loan worksheet in cell c9 enter pmt function to calculate the monthly payment for the altamonte springs 2018 facilities loan. ensure that the function returns a positive value and set the reference to cells b5 and b6 as absolute references.
Answers: 2
question
Computers and Technology, 22.06.2019 18:30
All of the following are characteristics that must be contained in any knowledge representation scheme except
Answers: 3
question
Computers and Technology, 23.06.2019 03:00
Jason, samantha, ravi, sheila, and ankit are preparing for an upcoming marathon. each day of the week, they run a certain number of miles and write them into a notebook. at the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day. write a program to them analyze their data. your program must contain parallel arrays: an array to store the names of the runners and a two-dimensional array of five rows and seven columns to store the number of miles run by each runner each day. furthermore, your program must contain at least the following functions: a function to read and store the runners’ names and the numbers of miles run each day; a function to find the total miles run by each runner and the average number of miles run each day; and a function to output the results. (you may assume that the input data is stored in a file and each line of data is in the following form: runnername milesday1 milesday2 milesday3 milesday4 milesday5 milesday6 milesday7.)
Answers: 3
question
Computers and Technology, 23.06.2019 06:20
What is a point-in-time measurement of system performance?
Answers: 3
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, 28.07.2020 06:01
question
Mathematics, 28.07.2020 06:01
Questions on the website: 13722363