Computer Science, asked by shivamjayeshpatel200, 3 months ago

Write a c program using user define function which receive positive integer N input parameter and return the sum of all odd numbers between 1 to N.

Answers

Answered by sattus222
1

Answer:

Skip to content

Search for:

C program to find sum of odd numbers from 1 to n

June 12, 2015PankajC programmingC, Loop, Program

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

Answered by PoojaRoy25
0

Answer:

Heya!!!☺️

Ur intro??????

Similar questions