Question: c++ please include screenshots 1. Write a program using a for-loop that outputs: a) the first ten 10 natural numbers each on a separate line:

c++
c++ please include screenshots 1. Write a program using a for-loop thatplease include screenshots

1. Write a program using a for-loop that outputs: a) the first ten 10 natural numbers each on a separate line: b) every 3rd number from 0 to 21 each separated by a space on the same line: 0 3 6 9 12 15 18 21 1 OWN 7 8 9 10 c) every 4th number backwards from 50 to 40 each separated by a space on the same line: d) All numbers between 'X' (user input) and 35 each separated by a space on the same line with the sum of all those numbers printed at the end, for example: 50 46 42 Please enter an integer: 30 30 31 32 33 34 35 Sum = 195

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!