mishagoride885
?>

Дано ребро куба (a составить линейный алгоритм вычисления площади поверхности и объёма куба. v=a^3 s=6a^2

Информатика

Ответы

zeltos384
Программа на паскале:
var a,v,s:integer;
begin
write('a = '); readln(a);
v:=a*a*a;
s:=6*a*a;
writeln('V = ',v,' S = ',s);
end.

Пример:
a = 3
V = 27 S = 54
arina2403423
  present simple общие does he go to school every day? does she really like singing? is it cold today? do cats catch mice? has he got a real friend? альтернативные does she go to shool every day or once a month? do cats catch mice or dogs? is the earth round or square? is russia bigger or smaller than other countries? does he like skiing or skating? специальные what does he do at school every day? who likes dancing? when does winter come? where does she live? what does she always wait for? present progressive общие is it raining now? is the sun shining at the moment? is he writing his composition now? are they swimming in the pool at the moment? are you doing your homework? альтернативные are you doing your homework or watching tv now? is it raining or snowing now? are they flying to italy or to canada now? is he reading a book or a web-page? is she clever or not? специальные what is she looking forward for? where are they going to go next summer? when is he leaving for france? whom is she writing an e-mail? what are they doing now?
vuyakovleva

a - уровень продаж, а затем зп первого менеджераb - второго менеджераc - третьегоуровень продаж у всех разный.язык программирования: паскальvara, b, c: integer; beginreadln (a); if a < 500 thena : = 0.03 * a + 200; if (a > 500) and (a < 1000) thena : = 0.05 * a + 200; if a > 1000 thena : = 0.08 * a + 200; readln (b); if b < 500 thenb : = 0.03 * b + 200; if (b > 500) and (b < 1000) thenb : = 0.05 * b + 200; if b > 1000 thenb : = 0.08 * b + 200; readln (c);   if c < 500 thenc : = 0.03 * c + 200; if (c > 500) and (c < 1000) thenc : = 0.05 * c + 200; if c > 1000 thenc : = 0.08 * c + 200;   if (a > b) and (a > c) thena : = a +200; elseif b > c thenb : = b + 200; elsec : = c + 200; wreteln ('зп первого менеджера: ', a, '$'); wreteln ('зп второго менеджера:   ', b, '$');   wreteln ('зп третьего менеджера:   ', c, '$')end.

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

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

Дано ребро куба (a составить линейный алгоритм вычисления площади поверхности и объёма куба. v=a^3 s=6a^2
Ваше имя (никнейм)*
Email*
Комментарий*

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

vasiliyglukhov
melissa-80
mira15963256
ilyagenius
Tarakanova_pavel
Stanislavovna1237
komplekt7
kiravalter1998697
elenak26038778
antongenfon
kagurkina
Александровна-Васильевна
balabinatanya7174
zbellatriks
lebedevevgen