write a c++ program to find the sum of even ,odd numbers upto 'n' using do..while
Answers
Answered by
0
answer for the question you asked
Attachments:
Answered by
0
According to the question, you want to know how to write a code in c++ about finding the sum of even and odd numbers upto the given value of a digit n.
For that, we introduce the iteration of elements separately for odd and even and compare them to n.
Then increasing value with ++, when it’s equal to n, comes out and gives the sum.
Similar questions