SHARE
TWEET

Untitled

a guest Jun 19th, 2017 46 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. float pyth(float sideA, float sideB);
  6.  
  7.  
  8. int main(void){
  9.  
  10. float sideA = 0;
  11. float sideB = 0;
  12.  
  13.  
  14.     printf("Please input sideA: \n");
  15.     scanf("%f", &sideA);
  16.     printf("Please input sideB: \n");
  17.     scanf("%f", &sideB);
  18.     printf("The measure of sideC is %f", pyth);
  19.    
  20.     return sideC;
  21. }
  22.  
  23. float pyth(float sideA, float sideB){
  24.     float sideC = 0;
  25.     float sideCSquare = sideA * sideA + sideB * sideB;
  26.     sideC = sqrt(sideCSquare);
  27.     return sideC;
  28. }
RAW Paste Data
Top