C programming:

I want to creat a program that asks the user to input the integer lengths of three sides of a triangle, and if so whether the triangle is a right-angled, acute or obtuse one. i am having some doubts about the if, else if statements. I never seem to know how and in what order to use them (could maybe someone explain this to me please) What am i doing wrong here??

Code:#include <stdio.h> #include <stdlib.h> #include <math.h> int main(int argc, char *argv[]){ int SideA; int SideB; int SideC; /*sideC = Hypotenuse*/ printf("Type in the integer lengths of 3 sides of a triangle:\n"); scanf("%d %d %d", &SideA, &SideB, &SideC); printf("%d %d %d\n", &SideA, &SideB, &SideC); { if (SideA*SideA + SideB*SideB == SideC*SideC){ printf("This is a right-angled triangle.\n"); } else if (SideC*SideC < SideA*SideA + SideB*SideB){ printf("This is an acute-angled triangle.\n"); } else if(SideC*SideC > SideA*SideA + SideB*SideB){ printf("This is an obtuse-angled triangle.\n"); } else { printf("This is not a triangle\n"); } return 0; }