fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3. #include <conio.h>
  4.  
  5. int main()
  6. {
  7. double a, b, c, s, p;
  8. printf ("Нахождение S треугольника\n");
  9.  
  10. printf ("введите a=\n");
  11. scanf ("%lf", &a);
  12. printf ("введите b=\n");
  13. scanf("%lf", &b);
  14. printf ("введите с=\n");
  15. scanf ("%lf", &c);
  16.  
  17. //Вычисление
  18. if (a+b<c)
  19. printf ("\nПлощадь не вычисляется");
  20. else
  21. {
  22. p=(a+b+c)/2;
  23. s=(p*(p-a)*(p-b)*(p-c));
  24.  
  25.  
  26. printf ("Площадь прмогульника S=%10.1lf\n", s, p);
  27.  
  28. }
  29.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:3:19: fatal error: conio.h: No such file or directory
 #include <conio.h>
                   ^
compilation terminated.
stdout
Standard output is empty