Advertisement
Josif_tepe

Untitled

May 14th, 2021
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n, a, b;
  8.     cin >> n >> a >> b;
  9.     int kolicnik_a = 0;
  10.     kolicnik_a = n/a;
  11.     int kolicnik_b = 0;
  12.     kolicnik_b = n/b;
  13.     cout << kolicnik_b - kolicnik_a << endl;
  14.      return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement