-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrectangle.pas
30 lines (30 loc) · 1 KB
/
rectangle.pas
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
program Hello;
var rad : real;
var deg : word;
const pi = 3.141592653589783238462643;
//var a, b,c : real;
begin
writeln('Napiste uhel v celych stupnich');
write('alpha je: ');
readln(deg);
rad := (2*pi*deg)/360;
writeln('apha v radianech je : ', rad);
writeln('cosinus apha je :',cos(rad));
writeln('sinus apha je :',sin(rad));
writeln('alpha odpovida ',char(deg), ' v ascii tabulce' );
{writeln('Napiste stranu a');
write('strana a je: ');
readln(a);
writeln('Napiste stranu b');
write('strana b je: ');
readln(b);
writeln('obvod obdelnika je: ', (a+b)*2);
writeln('obsah obdelnika je: ', (a*b));
writeln('delka intervalu vymezenem a a b je: ', abs(a-b));
writeln('zaokrouhlena a + b po zdaneni ve vyssi 21% je : ', round((a+b)*1.21));
writeln(trunc(a), ' celociselna cast cisla a');
writeln(round(a), ' zaokrouhleni cisla a');
c := sqr(a)+sqr(b);
writeln(c, ' ctverec nad stranou c, a strana c je', sqrt(c));
}
end.