How to add 'n' amount of odd integers? Languages

How to add 'n' amount of odd integers?

I'm trying to write a program that computes the sum of the first n positive odd integers.I'm having trouble figuring out how to incorporate n into finding the sum. I already have a do/while loop to ensure I get a positive value when assigning n value. I know that I...
Read More