Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Triangle.pas
//fpc 3.0.0 program Triangle (input, output); Var A, B ,C: 1..maxint; S, area :real; begin writeln ('Read and print sides in ascending order'); read (A ,B ,C); write (A,' ' ,B, ' ' ,C, '.....'); if A+B>C then begin {determine nature of triangle } if A=C then write ('an eguailateral triangle ') else if (A=B) or (B=C) then write ('an isosceles triangle') else write ('a scalene triangle '); {determine the area} S:= 0.5 * (A+B+C); area:=sqrt (S*(S-A)*(S-B)*(S-C)); writeln ('of area ' , area:8:2); end else begin writeln('not a triangle'); end; end.
run
|
edit
|
history
|
help
0
Подсчёт количества единичных битов в десятичном числе от 0 до 15
Zad 3 b
45
JESSICA GOMES DE SOUZA FERREIRA 600621634
Пузырькова сортировка
Gertie
How many letters?
Задача №1516. Проверка на простоту (цикл while)
y
1