SHARE
TWEET

Untitled

a guest Nov 9th, 2019 83 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top