Advertisement
Josif_tepe

Untitled

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