Write an algorithm, in the form of a C-Language?

  • divides two float variables
  • finds the remainder by using explicit casting.

Solution


#include <stdio.h>
int main()
{
float a,b;
int c;
a=10.3;
b=5.2;
c=(int)a%(int)b;
printf("Result is %d",c);
return 0;
}