rengetsu

Timus_1327

Aug 6th, 2018
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. //Timus 1327
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6.     int a, b, answ=0;
  7.     cin >> a >> b;
  8.     for(int i=a;i<b+1;i++)
  9.     {
  10.         if(i%2!=0){answ++;}
  11.     }
  12.     cout << answ;
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment