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

СРОЧНО! Составьте программу, которая будет сравнивать площади двух окружностей. В результате запуска в программе ПАСКАЛЬ должен быть такой текст: "Введите радиус одной/второй окружности:" (площадь равна пи * Радиус, где пи равен 3,14) после подстановки любого радиуса, программа должна вычеслить площади окружностей, затем сравнить их. нужно составить лишь программу...

Ответы

Автор ответа: estengseant
1
var r1,r2,r01,r02: real;
begin
writeln('Введите радиус одной/второй окружности');
readln(r1,r2);
r01:=pi*sqr(r1);
r02:=pi*sqr(r2);
if r01<r02 then writeln('r1 < r2, т.е. ',r1,' < ',r2);
if r01=r02 then writeln('r1 = r2, т.е. ',r1,' = ',r2);
if r01>r02 then writeln('r1 > r2, т.е. ',r1,' > ',r2);
end.

StanislavSib: спасибо большое))
Похожие вопросы
Предмет: Английский язык, автор: eshchanovakarolinka
TECT: Prepositions of place and movement C on B C at the left C round C inside Go A near B the path until you see a high rock. C up U с into C under C inside C among C on the top of C down C on 1 The reception desk is the centre of the hall. A in B at 2 Look! The shopping center is A near 3 The company is sitting the table. on the left A onto 4 We are lucky to have a garage right the house. B into among 5 A out of B from 6 We are flying Europe at the moment. A on B over 7 A young man jumped his window last night. A out of B along 8 The parrot is the cage. A between B at 9 What are you hiding your back? A in front of B behind 10 The title of the article is the page. A at the top of B in the top of 11 The ships are carrying their cargos the river. A into B behind 12 She's got freckles her nose. A at B along 13 Let's have a walk the coast. A over B along 14 There has been an argument Sandra and Lisa. A between B among 15 Put the frozen pizza the oven for ten minutes. A out of B 16 This train stops every station. across A in B at 17 Let's drive the field. It's the shortest way. A through B from 18 We spent a few days Florence last week. A at B in 19 Put your money and documents the cash desk. A in B round 20 The bus stopped the traffic lights. A in front B in front of 21 I think your slippers are the bed. A under B Are there many passengers the plane? through 22 A in B at 23 Todd is lying bed with fever. A in B onto 24 We are going to travel the sea. A inside B across 25 I'm sure Lena is college now. A in B at C onto C under C into C on C on C across с onto C up C between C on C near C out of C into​
Предмет: Математика, автор: ArinaFunny
Предмет: История, автор: tttttttttttkkkkkkkkk