Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. float hipotenusa(float b, float a);
  5.  
  6.  
  7. int main()
  8.  
  9. {
  10. float a, b, hipotenusa;
  11. printf("Valor de a:");
  12. scanf("%f",&a);
  13.  
  14. printf("\nValor de b:");
  15. scanf("%f",&b);
  16.  
  17. printf("%4.2f",hipotenusa);
  18.  
  19. return 0;
  20. }
  21. float hipotenusa(float b, float a){
  22. return(sqrt(pow(b,2))+pow(a,2));
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement