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, 21.06.2019 20:30
What important technology has done the most to allow a businesses a chance to compete with larger international companies
Answers: 1
question
Computers and Technology, 22.06.2019 16:30
What type of file does a cookie place on web site visitors' computers so that web site managers can customize their sites to their visitors' preferences?
Answers: 1
question
Computers and Technology, 22.06.2019 22:30
Write a full class definition for a class named player , and containing the following members: a data member name of type string .a data member score of type int .a member function called setname that accepts a parameter and assigns it to name . the function returns no value.a member function called setscore that accepts a parameter and assigns it to score . the function returns no value.a member function called getname that accepts no parameters and returns the value of name .a member function called getscore that accepts no parameters and returns the value of score .this is what i have, aparently this is wrong: class player{private: string name; int score; public: void player: : setname (string n){name =n; }void player: : setscore (int s){score = s; }string player: : getname (){return name; }int player: : getscore (){return score; }};
Answers: 2
question
Computers and Technology, 23.06.2019 07:30
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 2
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.08.2020 20:01
question
Mathematics, 28.08.2020 20:01
question
Health, 28.08.2020 20:01
Questions on the website: 13722367