milardovich

El triangulito, vithe. Ver 0.2

Jun 30th, 2011
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.44 KB | None | 0 0
  1. program triangulo;
  2. var
  3.    a, b,c:real;
  4.    t:integer;
  5. begin
  6.      writeln ('ingrese el primer lado');
  7.      readln (a);
  8.      writeln ('ingrese el segundo lado');
  9.      readln (b);
  10.      writeln ('ingrese el tercer lado');
  11.      readln (c);
  12. if (a = b) and (b = c) then
  13.     writeln('equilatero');
  14. if ((a = b) and (b <> c)) or ((c = a) and (b <> a)) then
  15.     write('isoceles');
  16. if (a <> b) and (b <> c) then
  17.     write('escaleno');
  18.  
  19.      readln (t)
  20. end.
Advertisement
Add Comment
Please, Sign In to add comment