Write a C program to find sum of all odd numbers from 1 to n using for loop. How to find sum of all odd numbers in a given range in C programming. Logic to find sum of odd numbers in a given range using loop in C programming.
Example
Input
Input upper limit: 10
Output
Sum of odd numbers from 1-10: 25