Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- //Write a program to read your age from the console and print how old you will be after 10 years.
- class PrintAgeAfterTenYears
- {
- static void Main()
- {
- Console.Write("Age: ");
- int age = int.Parse(Console.ReadLine());
- Console.WriteLine("Your age after 10 years is {0} years", age + 10);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment