sandra0309

av3

Dec 14th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. #include<stdio.h>
  2. int main ()
  3. { float a=5,b=7.5,c=10.2;
  4.   float L,s,P;
  5.   L=a+b+c;
  6.   s= L/2;
  7.   P= s* (s-a) * (s-b) * (s-c);
  8.   printf("L= %.2f",L);
  9.   printf("P= %.2f",P);
  10.  
  11.  
  12.  
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment