Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace AgeIn10Yrs
- {
- //Write a program to read your age from the console and print how old you will be after 10 years.
- class FutureAge
- {
- static void Main(string[] args)
- {
- Console.Write("My current age is ");
- string a = Console.ReadLine();
- int futureAge = int.Parse(a);
- Console.WriteLine("My age in 10 years will be {0}", (futureAge + 10));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement