11.Write a program in c programming to print the sum of all odd numbers between two given numbers using a while loop.
Program Description
The program takes the number N and finds the sum of odd numbers between two numbers.
Problem Solution
1. Take the two number N1 and N2 between which we have to find the sum of odd number.
2. Using for loop take the elements one by one from N1 to N2.
3. Using if,else statements separate the element as even or odd.
4. Add the odd numbers separately and store it in different variables.
5. Print the sum separately and exit.