Вопрос школьника по предмету Информатика
С++
Опрeдeлить кaкoму врeмeни сутoк сooтвeтствуeт oпрeдeлeннoe числo: 1-6(нoчь), 7-12(утрo), 13-18(дeнь), 18-24(вeчeр)
Ответ учителя по предмету Информатика
Ответ:
int main()
{
cin >> number;
if (number >= 1 && number <= 6) {
cout << «Ночь»
}
else if (number >= 7 && number <= 12) {
cout << «Утро»
}
else if (number >= 13 && number <= 18) {
cout << «День»
}
else if (number >= 18 && number <= 24) {
cout << «Вечер»
}
return 0;
}
Похожие вопросы от пользователей
1. I work very long hours.
2. It isn’t very well-paid.
3. I get a company car.
4. I get six weeks’ paid holiday.
5. They’ve got a good pension scheme.
6. I’m on a pretty good salary.
7. I’m hoping to get promoted next year.
8.1 can do overtime if I like.
9. You can work your way up quite quickly.
10. They run a system of flexi-time.
11. I get a regular pay rise.
12. I get private health insurance.
13. They’ve said I can go part-time after I’ve had my baby.
14. I’m taking a few days off next week. The kids are off school.
15. I’m ambitious. I want to move up the career ladder.
16. They give us a bonus at Christmas.
Money Hours Benefits / Perks Promotion Holiday
………. ………. ……….. ………. ……….
Benefits are extras you get from your employer in addition to your salary. Perks is an informal word for benefits – “A company car is one of the perks of the job.”
Помогите пожалуйста!!!