SHARE
TWEET

Escadas

PedroQuintans Sep 13th, 2017 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Top