Here I have already written the code which prints the rightmost integer of a float number, however when I run the program and put in a number, the program closes immediately. Can anyone help me fix this problem?
int main (void)
// Local Declarations
printf("Please enter in a float number: ");
oneDigit = fltNum % 10;
printf("\nThe right digit is: %d", oneDigit);
printf("Enter an integer and press Enter to exit the program: ");