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