I've started programming in C a few weeks ago and have decided to start writing a calculator for every topic/subject I get in maths at school.
When I was writing my most recent, I came across a problem that it would not give the user time to read the final answer at the end. I must be doing something slightly wrong (and probably very stupidly simple aswell lol!). Does anybody know what's wrong with my source code below?
Thanks - I'm new to the forum and it seems like a really informative place! I'm looking forward to being here.
/* A Program by Jake C to work out the gradient of a line by entering
2 coordinates */
printf("Please enter the first set of coordinates seperated by a space:\n");
printf("Please enter the second set of coordiantes seperated by a space:\n");
printf("The gradient of the line is:\n\n%f",answer);