// Directions: Practice #5-1
// 1) Create an integer variable for age and assign an appropriate age for the an adult using the correct naming convention. (ie. 25)
// 2) Output the age to the console (ie. Age: 25)
// 3) Replace the the assigned age with the assigned plus 5.
// 4) Output the age to the console (ie. Age: 30)
// 5) Replace the the assigned age with the assigned minus 7.
// 6) Output the age to the console (ie. Age: 23)
// 7) Replace the the assigned age with the assigned multipied by 2.
// 8) Output the age to the console (ie. Age: 46)
// 9) Replace the the assigned age with the assigned age plus 1 using Method 1.
// 10) Output the age to the console (ie. Age: 47)
// 9) Replace the the assigned age with the assigned age plus 1 using Method 2.
// 10) Output the age to the console (ie. Age: 48)
// 9) Replace the the assigned age with the assigned age plus 1 using Method 3.
// 10) Output the age to the console (ie. Age: 49)
// 11) Submit your dotnetfiddle link in Blackboard.
using System;
public class Program
{
public static void Main()
Console.WriteLine("Hello World");
int Age;
Age = 25;
Age = Age + 5;
Console.WriteLine(Age);
// 5) Replace the assigned age with the assigned minus 7.
Age = Age - 7;
Age = Age * 2;
// 9) Replace the assigned age with the assigned age plus 1 using Method 1.
Age = Age + 1;
Age++;
Age+=1;
}