#include <iostream>

using std::cout;
using std::string;

main()
{
// Define all variables

int x = 2;
int y = 1;
int z;
int c;  // Variable to check if the sum is Odd or Even
int l = 5;  // Last Digit of my ID
int number = 0;

// Define String Variables 

string name = "Mansoor Ahmed";
string id   = "MC210200995";

// Calculate and Print Value to z

z = x*x+2*x*y-x/y; // Calculate value of z

cout << "After evaluation of given expression the value of z = ";
cout << z; 
cout << "\n"; 


// Print Value of Last Digit of my ID

cout << "Last Digit of my UV ID is  ";	
cout << l;
cout << "\n"; 

// Calculate and Print Sum of z and last digit of my ID

c=z+l;

cout << "I got an odd number  ";	
cout << c;
cout << "\n"; 

// Check if value is Even or Odd

if (c%2==0)
// Print Loop if condition is True
{

while ( number < c ) 

{
number = number + 1;	
	
cout << "Iteration: ";	
cout << number;
cout << "\n";
	
cout << "My Name is ";	
cout << name;
cout << "\n";
}

}
else
// Print Loop if condition is False

{

while ( number < c ) 

{
number = number + 1;

cout << "Iteration: ";	
cout << number;
cout << "\n";
	
cout << "My UV ID is ";	
cout << id;
cout << "\n";
}
	
}

}
