VelizarAvramov

AgeAfter10Years

Mar 22nd, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace AgeAfter10Years
  8. {
  9.     class Program
  10.     {
  11.         static void Main()
  12.         {
  13.             Console.WriteLine("What is your age ?");
  14.             int age = int.Parse(Console.ReadLine());
  15.             int futureAge = age + 10;
  16.             Console.WriteLine("After 10 years you will be {0} years old.", futureAge);
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment