-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAreaArea.lpr
41 lines (31 loc) · 996 Bytes
/
AreaArea.lpr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
program AreaArea;
uses crt;
var
perimetro,area, raio,volume:real;
begin
writeln ('=====================================================');
writeln ('PROGRAMA PARA CALCULAR O VALOR DE UM DETERMINADO RAIO');
writeln ('=====================================================');
writeln ('');
writeln ('Aperte qualquer tecla para continuar');
readkey;
clrscr;
writeln('===============================');
writeln ('');
write ('Digite o valor do raio: ');
readln (raio);
writeln ('');
perimetro := 2*3.14*raio;
writeln ('O valor do perimetro do circulo eh: ', perimetro:5:2);
writeln ('');
area := 3.14*raio*raio;
writeln ('O valor da area do circulo eh: ', area:5:2);
writeln ('');
volume := 4/3*3.14*raio*raio*raio;
writeln ('O valor do volume do circulo eh: ', volume:5:2);
writeln ('');
writeln ('===============================');
writeln ('Aperte [S] para sair! Obrigado.');
writeln ('===============================');
readkey;
end.