I understand the entire thing about modulus gives you the remainder, yada yada. THis is what I complied, and this is what I get.
Code:
#include <stdio.h>
#include <math.h>
int main()
{
  float num1, num2, mod;

  printf("Please type in a number: ");
  scanf("%f%",&num1);
  printf("Please type in a number: ");
  scanf("%f",&num2);
  double fmod(double num1, double num2);

 printf("%f divided by %f is remainder %f\n", num1, num2, mod);

  return 0;
}
I type cc -lm -o mod2A.out mod2A.c
Code:
 Please type in a number: 9
Please type in a number: 7
9.000000 divided by 7.000000 is remainder 0.000000
that isn't the remainder, where did i go wrong????