HELP - Stuck on some coding
Im stuck on some if coding, i have done lots of if coding before and cant see why it doesnt work with this particular coding:
36 float width ;
37 float length ;
38 float result;
39
40
41 printf("Please Enter the width of the triangle: ");
42 scanf("%f", &width);
43 if(width<0);
44 printf("The width cant hold any negative values, please re-enter data", );
45 scanf("%f", &width);
46 else
47 printf("Please Enter the length of the side of the triangle: ");
48 scanf("%f", &length);
49 if(length<0);
50 printf("The length cant hold any negative values, please re-enter data", );
51 scanf("%f", &length);
52 if(length<width);
53 printf("The length is smaller than the width, please enter a new width",);
54 scanf("%f", &length);
55 else
56 scanf("%f", &length);
57 printf("The height of the traingle is: %.2f", sqrt(length*length+width*width));
58 printf("\n");
59 }
44: error: expected primary-expression before ')' token
46: error: expected primary-expression before "else"
46: error: expected `;' before "else"
50: error: expected primary-expression before ')' token
53: error: expected primary-expression before ')' token
55: error: expected primary-expression before "else"
55: error: expected `;' before "else"
Any help would be grateful :)