Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int main()
- {
- float a, c, d;
- cout << "Enter a "; cin >> a;
- c = 1;
- a = fmod(a, c);
- a = a * 10;
- d = int(a);
- cout << d;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement