Program which find the remainder of float
numbers:
This function is the same as the modulus operator. But fmod() performs floating point divisions
#include
#include
#include
using namespace std;
int main()
{
cout getch();
return 0;
}
OUTPUT:
fmod of 3.14/2.1 is 1.04
remainder of float numbers:
numbers:
This function is the same as the modulus operator. But fmod() performs floating point divisions
#include
#include
#include
using namespace std;
int main()
{
cout getch();
return 0;
}
OUTPUT:
fmod of 3.14/2.1 is 1.04
remainder of float numbers: