kurlasku
?>

Составьте программу, заменяющую из двух данных чисел большее число удвоенным произведением, а меньшее-полусуммой этих чисел.

Информатика

Ответы

тахирович_Игорь581

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

var a,b: real; begin cls;

write('vvedite a '); readln(a); write('vvedite b '); readln(b);

if a> b thenbegina: =2*a*b; b: =(a+b)/2; endelse begin a: =(a+b)/2; b: =2*a*b; end; writeln('a= ',a: 0: 2,' ','b= ',b: 0: 2); end.

vakhitov100961

program 1;

 

uses crt;

 

var a,b: real;

begin  clrscr;

 

write('vvedite a '); readln(a);

write('vvedite b '); readln(b);

 

if a> b then begin a: =abs(2*a*b);                   b: =abs((a+b)/2);                   end else begin a: =abs((a+b)/2);                                   b: =abs(2*a*b);                                   end; writeln('a= ',a: 0: 2,' ','b= ',b: 0: 2); repeat until keypressed; end.

metelkin7338
X=0 n=100 while n< 1000:       if str(n)[: 1]==str(n)[-1] and n%3==0:               x+=n       n+=1 print(x) результат выполнения программы: python 3.4.2 (v3.4.2: ab2c023a9432, oct  6 2014, 22: 15: 05) [msc v.1600 32 bit (intel)] on win32 type "copyright", "credits" or "license()" for more information. > > > ================================ restart ================================ > > > 16803 > > >
martinzdraste

Объяснение:

No or not?

Grammar > Easily confused words > No or not?

из English Grammar Today

No and not are the two most common words we use to indicate negation. We use no before a noun phrase:

There’s no address on the envelope.

[parent to child]

No biscuits before dinner!

No decisions have been made.

We use not with any other phrase or clause:

It’s not often that you stop and think about the way you breathe.

Not suitable for children under 15.

Not surprisingly, it was a tense match but eventually the more experienced Australians won.

A:

Do you go cycling all year round?

B:

Not in the winter.

Ответить на вопрос

Поделитесь своими знаниями, ответьте на вопрос:

Составьте программу, заменяющую из двух данных чисел большее число удвоенным произведением, а меньшее-полусуммой этих чисел.
Ваше имя (никнейм)*
Email*
Комментарий*

Популярные вопросы в разделе

татьяна1245
milleniumwood633
Salkinserg
konnovakat1
valerii_Georgievna915
chulki-kupit
Corneewan
yurkovam-037
Igorevich_Aleksandrovna1599
badalovao256
matveevaev81
Olga Arutyunyan
konss2
smakejkina
kattarina71