Adapted by Neilor Tonin, URI Brazil
Read two integer values X and Y. Print the sum of all odd values between them.
The input file contain two integer values.
The program must print an integer number. This number is the sum off all odd values between both input values that must fit in an integer number.
Sample Input | Sample Output |
6 |
5 |
15 |
13 |
12 |
0 |