Computer Science, asked by Aishwarya4469, 17 days ago

algoritham to find the sum of odd numbers up to anyt number

Answers

Answered by sk4613883
0

Answer:

Logic to find sum of odd numbers from 1 to n

Input upper limit to find sum of odd numbers from user. ...

Initialize other variable to store sum say sum = 0 .

To find sum of odd numbers we must iterate through all odd numbers between 1 to n. ...

Inside the loop add sum to the current value of i i.e. sum = sum + i .

please make me as brainlist answer

Similar questions