Last active
November 30, 2022 06:30
-
-
Save Brianceasar/f0d8340f2d9fff0c53faf153a0e892ff to your computer and use it in GitHub Desktop.
Program that reads age from console and prints result after 10 years.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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