I have no idea hw to approach this... i need to end my program, shown below by the user pressing the letter Q on the keyboard. Help?
#include <stdio.h>
#include <stdlib.h>
float subtract(float x, float y);
int main (void)
{
float x, y;
printf("Please enter a real number:\n");
scanf("%f", &x);
printf("Please enter another real number:\n");
scanf("%f", &y);
printf("The difference of both values inputted: % f\n", subtract(x, y));
}
float subtract (float x, float y)
{
return x-y;
}