Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int br1, br2, sum = 0;
- cin >> br1 >> br2;
- for( ; br1<=br2; br1++)
- {
- if(br1%2 != 0) sum+=br1;
- }
- cout << sum;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment