program calculates hypotenuse. float value always returns 0.
I cant get this program to return the hypotenuse value. Can someone please check this out? I'm sure it's a little mistake somewhere.
double side1, side2, sqrs1s2, hypoto;
printf("\nThis program will calculate the hypotenuse of a right triangle.\n\n");
printf("Enter side one of the triangle:\n");
scanf("%d",&side1); ////gets side1
printf("Enter side two of the triangle:\n");
scanf("%d",&side2); ////gets side2
sqrs1s2 = (side1*side1 + side2*side2);
hypoto = sqrt(sqrs1s2); ////uses squareroot to calculate hypotenuse
printf("The lenth of the hypotenuse is: %d \n", hypoto);