fork(1) download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. struct triangle{
  5.  
  6. int a;
  7. int b;
  8. int c;
  9.  
  10. }ET={5,5,5};
  11.  
  12. int main(void) {
  13.  
  14. double s = 0;
  15. double size = 0;
  16. s = ET.a/2+ET.b/2+ET.c/2;
  17. printf("%lf",s);
  18.  
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
6.000000