#include<conio.h>
#include<stdio.h>
#include<math.h>
void main()
{
clrscr();
{
printf("fmod of 3.14/2.1 is%lf \n", fmod(3.14,2.1));
}
getch();
}
NOTE:::
fmod(x,y) - Calculates x modulo y, the remainder of x/y.
This function is the same as the modulus operator. But fmod() performs floating point divisions.
#include<stdio.h>
#include<math.h>
void main()
{
clrscr();
{
printf("fmod of 3.14/2.1 is%lf \n", fmod(3.14,2.1));
}
getch();
}
NOTE:::
fmod(x,y) - Calculates x modulo y, the remainder of x/y.
This function is the same as the modulus operator. But fmod() performs floating point divisions.
No comments:
Post a Comment