Advertisement
Risonna

lab1_n7

Oct 30th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4. int main()
  5. {
  6.     float a, c, d;
  7.     cout << "Enter a "; cin >> a;
  8.     c = 1;
  9.     a = fmod(a, c);
  10.     a = a * 10;
  11.     d = int(a);
  12.     cout << d;
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement