I changed it to this. May not be exact but its accurate to within 0.1, so not too shabby.
Code:
/* This program will calculate whether or not the values entered by a user consitute a right angle triangle*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
float a, b, c;
float sum, difference;
printf("please enter your values of length for the sides of your triangle.\n a and b will be the shorter sides while the value you enter for \nc must be the greatest length\n");
printf(" enter a:\n");
scanf("%f", &a);
printf(" enter b:\n");
scanf("%f", &b);
printf(" enter c:\n");
scanf("%f", &c);
sum = sqrt((b*b)+(a*a));
difference = c - sum;
if (difference <= 0.1 )
{
printf("your values indicate the triangle is a right angle triangle\n");
}
else
{
printf("The values entered do not indicate a right angle triangle\n");
}
system ("pause");
return 0;
}