Skip to content

Instantly share code, notes, and snippets.

@Brianceasar
Last active November 30, 2022 06:30
Show Gist options
  • Save Brianceasar/f0d8340f2d9fff0c53faf153a0e892ff to your computer and use it in GitHub Desktop.
Save Brianceasar/f0d8340f2d9fff0c53faf153a0e892ff to your computer and use it in GitHub Desktop.
Program that reads age from console and prints result after 10 years.
namespace AgeAfterTenYears
{
class AgeAfterTen
{
static void Main (string[] args)
{
Console.Write("Input your current age: ");
int age = Convert.ToInt32(Console.ReadLine());
Console.Write("Your age after 10 years: ");
age = age + 10 ;
Console.Write("{0} ", age);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment