From what I understand this site help to check if my solution is proper or not..so forgive me if the header is bad.
This is my solution for the question:
#include <stdio.h>
int main()
{
double num1, num2, different, product, answer;
printf("please enter 2 floatig point numbers:\n");
printf("number one is?\n");
scanf("%lf", &num1);
printf("number two is?\n");
scanf("%lf", &num2);
if (num1 > num2)
{
different = num1 - num2;
}
if (num2 > num1)
{
different = num2 - num1;
}
if (num1 == num2)
{
different = 0;
}
product = num1*num2;
answer = different/product;
printf("%lf", answer);
}
How bad is it?
