Guest User

Untitled

a guest
Nov 9th, 2019
95
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main(void) {
  4. int a,b,c;
  5. float t,E;
  6. printf("Dwse pleura a,b,c\n");
  7. scanf("%i%i%i", &a, &b, &c);
  8. if (a<b+c && b<a+c && b<a+c && c<b+a) {
  9. t = (a+b+c)/2;
  10. E = sqrt(t * (t-a) * (t-b) * (b-c));
  11. printf("E = %f\n", E);
  12.  
  13. if (a==b || b==c || c==a ) {
  14. printf("Isoskeles");
  15. }
  16. else if ((a == b) && (b == c) && (c == a)) {
  17. printf("Isopleuro");
  18. }
  19. } else {
  20. printf("Den isxyei h parapanw sinthiki");
  21. }
  22.  
  23. }
RAW Paste Data