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

Даны 2 числа. Проверить будут ли они положительные.

Ответы

Автор ответа: ManulTheLiar
0
Program PRIMER;
Uses crt;
var a,b: real;

Begin
     write('Введите число а = ');
     readln(a);
     write('Введите число b = ');
     readln(b);
     writeln;
     if a<0 then
     writeln ('Число а отрицательное');
     if a>0 then
     writeln ('Число а положительное');
     if a=0 then
     writeln ('Число а равно нулю');
     if b<0 then
     writeln ('Число b отрицательное');
     if b>0 then
     writeln ('Число b положительное');
     if b=0 then
     writeln ('Число b равно нулю');
End.
     

Автор ответа: Аноним
0
program primer;
var a,b:integher;
begin
writeln('vvedite a,b:=');
readln(a,b);
if (a<0) and (b<0) then writelln('yes') else writeln('no');
readln;
end
Автор ответа: Аноним
0
if(a>0) and (b>0) then writeln ('yes') else writeln (no);
Похожие вопросы
Предмет: Английский язык, автор: natalavitomskaa00228
ПОМОГИТЕ РЕШИТЬ ЗАДАНИЕ ПО АНГЛИЙСКОМУ ПОЖАЛУЙСТА!!!!

1. Complete the sentence using the right participles. (выбрать правильное причастие)
1) The music (sounding/sounded) from the radio was light and cheerful.
2) (Printing/Printed) texts are easier to read than those (writing/written) by hand.
3) I often write to my friend (living/lived) in another town.
4) The tree (growing/grown) behind my window is not a birch but an oak.

2. Complete the sentences using Participle I. Make them true. (дополнить предложения, используя причастие первое, своими фразами)
1) I must say that I often have trouble…
2) Most people have difficulty…
3) Personally I prefer to have fun_____ at weekends.

3. Complete the sentences using function words where necessary. (дополнить предложения предлогами, где необходимо)
1) We don’t mind ____ staying alone for some time.
2) Please sit down and have some tea. I’d like you to feel __home.
3) Did you enjoy yourself ___ the concert yesterday night?
4) The young mother was holding the little boy ____the hand.
5) I didn’t read that article, I just looked _____ it.
6) Their family has grown bigger and they are looking ____ a new more spacious house.

4. Translate into English (перевести на английский)
1) честное решение
2) провести собрание
3) зарабатывать себе на жизнь
4) Ваш долг- расследовать тайну.
5) Почему ты говоришь шепотом? Кто-нибудь спит?
6) Я не возражаю, чтобы вы шли домой прямо сейчас.​