Advertisement
PedroQuintans

Escadas

Sep 13th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4.  
  5. int main(){
  6.  
  7. int degraus, h, c, l;
  8. float diag;;
  9.  
  10. while(degraus != EOF){
  11.  
  12. scanf("%d %d %d %d", &degraus, &h, &c, &l);
  13.  
  14. diag=(((sqrt(pow(h,2)+pow(c,2)))*degraus)*l)/10000;
  15.  
  16.  
  17. printf("%.4f\n", diag);
  18. }
  19.  
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement