For Loop count by 5 private: System::Void optCount5_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { Reset(); for (short x = 1; x < 6 ; x++) { lbAnswer->Items->Add(x); //show break & continue ShowCode("Count to 5.txt"); } } For Loop count by 2's private: System::Void optCountBy2_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { Reset(); for (int x = 2; x <= 30; x += 2) //count from 2 to 30 by 2's { lbAnswer->Items->Add(x); ShowCode("Countby2.txt"); } } For Loop Backwards private: System::Void optBack_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { Reset(); //loop runs backwards as long as x > 0 for (int x = 30; x > 0; x --) //could also say x -= 1 { lbAnswer->Items->Add(x); ShowCode("Backwards.txt"); } } Do-While private: System::Void rdoDoWhile_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { Reset(); int x = 1; int total = 0; do { lbAnswer->Items->Add(x); total += x; x++; } while (x <= 15); lbAnswer->Items->Add(" "); lbAnswer->Items->Add("Total ====> " + total); While Loop private: System::Void rdoWhile_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { Reset(); int x = 1; int total = 0; while (x < 10) { total += x; lbAnswer->Items->Add(x); x++; } lbAnswer->Items->Add(" "); lbAnswer->Items->Add("Total ====> " + total); Nested For Loop private: System::Void optNested_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { Reset(); for (int x = 1; x<=5; x ++) { for (int y = 1; y < 4 ; y ++) { lbAnswer->Items->Add(" InnerLoop"); } lbAnswer->Items->Add("OutterLoop"); } ShowCode("Nested.txt"); }