Paste Search Dynamic
Recent pastes
The value area of
  1. #include <stdio.h>
  2. #include<math.h>
  3. int main(void) {
  4. float a,b,c,s,r,x;
  5.     printf("The value of a:");
  6.     scanf("%f",&a);
  7.   printf("The value of b:");
  8. scanf("%f",&b);
  9.     printf("The value of c:");
  10. scanf("%f",&c);
  11. s=(a+b+c)/2;
  12. printf("The value of s:%.3f",s);
  13. x=sqrt (s*(s-a)*(s-b)*(s-c));
  14. printf("nThe value area of triangle is:%.3f",x);
  15.  
  16.         return 0;
  17. }
  18.  
Parsed in 0.004 seconds