Предмет: Информатика, автор: rzoto39

Программа получает на вход последовательность целых чисел, каждое

число записано в отдельной строке. Последовательность завершается числом

0, при считывании которого программа должна закончить свою работу и

вывести количество четных положительных членов последовательности (не

считая завершающего числа 0).

Входные данные Выходные данные


1
2
-4
0
5

1


0
2
4

0


Аноним: программа на каком языке программирования должна быть?

Ответы

Автор ответа: hotdog5
1

Ответ:

Написано на питоне. Все работает и с комментариями. Второй пример противоречит условию

Приложения:
Похожие вопросы
Предмет: Русский язык, автор: ilyhmkv
Предмет: Русский язык, автор: Tom19007
Предмет: Русский язык, автор: Andrey338
Предмет: Английский язык, автор: Yad13
Раскройте скобки, употребляя глаголы в Present Continuous или в Present Simple.
I (to read) now. He (to sleep) now. We (to drink) tea now. They (to go) to school now. i (not to sleep) now. She (not to drink) coffee now. I (to read) every day. He (to sleep) every night. We (to drink) tea every morning. They (to go) to school every morning. I (not to sleep) in the daytime. She (not to drink) coffee after lunch. We (not to watch) TV now. They (not to eat) now. My mother (not to work) now. You (to work) now? He (to play) now? They (to eat) now? Your sister (to rest) now? What you (to do) now? What you (ro read) now? What they (to eat) now? What your brother (to drink) now? We (not to watch) TV in the morning. They (not to eat) at the lesson. My mother (not to work) at an office. You (to work) every day? He (to play) in the afternoon? They (to eat) at school? Your sister (to rest) after school? What you (to do) every morning? What you (to read) after dinner? What they (to eat) at breakfast? What your brother (to drink) in the evening?

Составьте вопросы, используя нужное время.
1. (you/go) on holiday by plane sometimes?
2. (they/play) computer games every day?
3. (she/eat) dinner at the moment?
4. What (they/do) right now?
5. (she/visit) her grandma very often?

Внимательно прочтите каждое предложение и раскройте скобки, поставив глагол в Present Continuous или Present Simple.
1) His father (not to watch) TV at the moment. He (to sleep) because he is tired.
2) Pat (not to cook) dinner at the moment. She (to cook) dinner every Monday.
3) I (not to drink) coffee now. I (to write) an English exercise.
4) I (not to drink) coffee in the evening. I (to drink) coffee in the morning.
5) Your friend (to do) his homework now?
6) Your friend (to go) to school in the morning?
7) Look! The baby (to sleep).
8) The baby always (to sleep) after dinner.
9) My grandmother (not to work). She is on pension.
10) My father (not to sleep) now. He (to work) in the garden.