Computer Science, asked by TbiaSamishta, 1 year ago

write a c++ program to find the sum of even ,odd numbers upto 'n' using do..while

Answers

Answered by Ranjuzzz
0

answer for the question you asked

Attachments:
Answered by Sidyandex
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