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

Введите три числа a,b,c. Определите кол-во положительных чисел в данном наборе. Пример ввода: 3, -2 ,9; Пример вывода: кол-во положительных чисел равно 2

Ответы

Автор ответа: SalavatGizza
0
program mas;
uses crt;
var a, b, c, k:integer;
begin
writeln('Введите три числа');
readln(a);
readln(b); 
readln(c); 
for i:=1 to 3 do begin  
if i>0 then k:=k+1;  
end;
writeln('Положительных чисел',k);
readln;
end.
Вроде так.
Точно не знаю, давно на этом языке не кодил
Похожие вопросы
Предмет: Алгебра, автор: leta1969
Предмет: Английский язык, автор: selikovalili
Питання №1 ?
1 бал
Match the following subjects (1-4) with their definitions (A-Д).

Geometry

Computer studies

Handicraft classes

Biology

The branch of mathematics concerned with the properties and relations of points, lines, surfaces, solids, and higher dimensional analogs.

Classes that teach pupils to use electronic machines that can quickly make calculations, store and rearrange information.

The study of living organisms, divided into many specialized fields that cover their morphology, physiology, anatomy, behavior, origin, and distribution.

Activities, which involve making decorative objects with your own hands (e.g. knitting, carving, pottery, etc.).

The part of mathematics in which letters and other general symbols are used to represent numbers and quantities in formulae and equations.

А Б В Г Д
1
2
3
4
Питання №2 ?
1 бал
Complete the following sentences (1-4) with the right forms of the verbs in the Present Perfect tense (A-Д).

Dan is looking for his key. He can’t find it. He ___________ it.

Jessica can’t walk and her leg is in plaster. She _____________ it.

Peter’s English wasn’t very good. Now it is much better. It ____________.

Tim didn’t have a beard last month. Now he has a beard. It __________________.

has broken

has improved

has arrived

has grown

has lost

А Б В Г Д
1
2
3
4
Питання №3 ?
1 бал
What do you need if your pencil is blunt?

Pencil clipper

Pencil cutter

Pencil sharpener

Pencil box

Питання №4 ?
1 бал
Blank maps are used at ___ lessons.

Maths

English

History

Geography

Питання №5 ?
1 бал
Put the verb into the correct form. (Present Perfect)

We (buy) a new lamp

Have bought

Has bought

Have buyed

Haven’t buy

Питання №6 ?
1 бал
Today I saw an old friend. I ___ him for a long time.

Haven’t saw

Haven’t seen

Didn’t see

Hasn’t seen
Предмет: Физика, автор: prot59920
Предмет: Математика, автор: anasnasiyasady