Created
May 2, 2016 00:10
-
-
Save joaogui1/d7aee206fedd802e3c89d239fca38f1b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Autor: Roger Benet da Silva Souza - IFMT-BAG | |
#include <bits/stdc++.h> | |
using namespace std; | |
int x,y,s; | |
int main(){ | |
scanf("%d %d", &x ,&y); | |
for(int i = min(x,y) + 1; i < max(x,y); i++)if(i%2 != 0)s += i; | |
printf("%d\n",s); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment