//This program uses a for loop and a while loop to display the squares of the even numbers from 10 through 25 */ #using using namespace System; int main() { //declare variables double num1 = 0; double startWith = 0; double endWith = 0; Console::Write("Enter a number: "); num1 = Convert::ToDouble(Console::ReadLine()); if (startWith == 10) { //perform loops num1 = 10; while (num1 >= 10) { while (num1 <= endWith) { Console::Write("*"); num1 = Math::Pow(num1, 2); }//end while Console::WriteLine(); }//end while } else if (endWith == 25) { num1 = 25; //perform loops while (num1 <= 25) { while (num1 <= endWith) { Console::Write("*"); num1 = Math::Pow(num1, 2); }//end while Console::WriteLine(); }//end while } //end if else { Console::WriteLine("Error"); } return 0; } //end of main function