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. 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
To solve this problem youll need to write two separate loops ... View full answer
Get step-by-step solutions from verified subject matter experts
