Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main(){
- int degraus, h, c, l;
- float diag;;
- while(degraus != EOF){
- scanf("%d %d %d %d", °raus, &h, &c, &l);
- diag=(((sqrt(pow(h,2)+pow(c,2)))*degraus)*l)/10000;
- printf("%.4f\n", diag);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement