English, asked by bsemf20039, 4 months ago

Write a program in C++ to find the sum of first 10 natural numbers using do or while loop

Answers

Answered by Anonymous
0

Explanation:

C++ code to find the sum of natural numbers using do - while loop

  1. The following variable i, num and sim =0 are declared.
  2. A positive integer is received from the user .
  3. Then , the loop is used to add a consecutive number from 1 up to the given number.
  4. Finally, the sum is received as total and displayed
Similar questions