Q1: 0 1 2 3 4 5 6 7 8 9 Q2 there will be one empty line between each lines of numbers like: 1 2 3 4 5 6 7 8 9 Q3 All of them will be outputed in one line, like this: 0 1 2 3 4 5 6 7 8 9 Q4 when it starts at 1, it will be: for (int i {1}; i < 10; ++i) { cout << i << "\n"; } and when i starts at 5, it will be: for (int i {5}; i < 10; ++i) { cout << i << "\n"; } Q5 it's output is: 0 1 2 3 4 5 6 7 8 9 10 this is because when we are setting the forloop, we set it when i <= 10, i++ instead of i < 10, this <= cause i increaseto 10 instead of 9 in previous questions. Q6 the code will be like this: for (int i {10}; i <= 20; ++i) { cout << i << " "; } Q7 this time it will increase 10 at the same time so it will be like: 10 20 30 40 50 60 70 80 90 100 Q8 for (int i {2}; i <= 8; i += 2) { cout << i << "\n"; } Q9 the output it like: 10 9 8 7 6 5 4 3 2 1 0 the reason it count down is because it has i-- instead of ++i in the past. also i stops at 0 is because it has i<=0 command in forloop setup, when this coindition reached, the loop will end. Q9 the output will be like: 100 90 80 70 60 50 40 30 20 10 0 it count down by 10 is because it have --10 command Q11 this is generate: 0 1 10 11 20 21 30 31 40 41 50 51 60 61 70 71 80 81 90 91 The second one is 1 greater than the previrous is because of the i+1 statment in cout command. Q12 for (int i {0}; i <= 90; i += 10) { cout << i << "\t" << i * 2 << "\n"; } Extra Credit: for (int i {0}; i <= 90; i += 10) { cout << i << "\t" << i * 2 << "\n"; } For if statment: Q1 for (int i {0}; i < 10; ++i) { if (i % 2 == 0) { cout << i << " is even." << "\n"; } else { cout << i << " is odd." << "\n"; } } Q2 for (int year {2000}; year <= 2028; ++year) { if (year % 4 == 0) { cout << year << " is a presidential election year." << "\n"; } else if (year % 4 == 2) { cout << year << " is a midterm election year." << "\n"; } else { cout << year << " is a local election year." << "\n"; } } Q3 time_t t {time(nullptr)}; tm *p {localtime(&t)}; int currentYear {p->tm_year + 1900}; int year; if (year < currentYear) { cout << year << " was a good year.\n"; } else if (year == currentYear) { cout << year << " is a good year.\n"; } else { cout << year << " will be a good year.\n"; } Q4The two pieces of code will not produce the same output the first code uses multiple if statments, so it can print more than one messages the second code uses if/else if/else, so it will print only one message for example when time is 12pm or 6pm, the first code might have more than one message the second code will only print one message