fork download
  1. #include <stdio.h>
  2.  
  3. int i;
  4. int main()
  5. {
  6. int ch = 1;
  7. double a, area;
  8. switch(ch)
  9. {
  10. case 1: printf("equilateral triangle \n");
  11. printf("value of side \n");
  12. scanf("%lf",&a);
  13. // printf("\n %f", a);
  14. area= 0.433*a*a;
  15. printf("\n %lf", area);
  16. break;
  17.  
  18. default : break;
  19.  
  20. }
  21. }
  22.  
Success #stdin #stdout 0s 2296KB
stdin
5
stdout
equilateral triangle 
value of side 

 10.825000