Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
AreaTriangulo.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:=sgrt (s*(S-A)*(S-B)*(S-C)); writeln ('of area' , area:8:2); end; else writeln('not a triangle'); end.
run
|
edit
|
history
|
help
0
eliminar elemento de un arreglo
Union of set with array of elements
practica 2 ejercicio 8
practica 6 ejercicio 1
Largest Prime Factor
two number sum
Test 1
Квартира Задача 6.14 учебн. Грицанова
Cek dua pangkat
1