Question: Print the numbers from one to ten (one number per line) two times - the first time use a while loop, and the second

Print the numbers from one to ten (one number per line) two times the first time use a while loop, and the second time use a for loop. Lab 4.11.1: Ch 4 warm up: Looping Practice (C++) Submission main.cpp Load default template... 1 #include Kiostream 2 using namespace std; 4 int main() 6 int i 8 Write a while loop that displays the numbers from one to ten with an endline after each number Use the variable i for your index 9 while loop goes here 10 12 Write a for loop that also displays the numbers from one to ten with an endline after each number Use the variable i for your inde 13 for loop goes here 14 16 17 18 return 0 19

Print the numbers from one to ten (one number per line) two times - the first time use a while loop, and the second time use a for loop. L Lab Submission 4.11.1: Ch 4 Warm Up: Looping Practice (C++) 1 #include 2 using namespace std; 3 4 int main() { 5 6789101 12 13 14 15 16 17 18 19 19} int i; main.cpp Load default template.. /* Write a while loop that displays the numbers from one to ten with an endline after each number. Use the variable i for your index /* while loop goes here* / return 0; /* Write a for loop that also displays the numbers from one to ten with an endline after each number. Use the variable i for your inde /* for loop goes here* /

Step by Step Solution

3.42 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve this problem youll need to write two separate loops ... View full answer

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 Programming Questions!