I'm studying a book I found on the net, she asks for an exercise, but she did not teach how to do it in the previous pages, I tried and it did not work, thank you for your help.
Make a program that reads and stores any two integers in variables. Calculate and present the rest of the division of each other
float num1, num2, media;
printf("\n digite um valor: ");
scanf("%f",&num1);
printf("\n digite outro valor: ");
scanf("%f",&num2);
media = num1 % num2;
printf("\n %f \n", media);