Advertisement
pupesko

SoftUni - 2.15* Age after 10 Years

Oct 26th, 2015
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.44 KB | None | 0 0
  1. //Write a program to read your birthday from the console and print how old you are now and how old you will be after 10 years.
  2.  
  3. using System;
  4.  
  5. namespace Vuzrasten
  6. {
  7.     class Program
  8.     {
  9.         static void Main()
  10.         {
  11.             Console.Write("Enter your age: ");
  12.             int age = Convert.ToInt32(Console.ReadLine());
  13.             Console.WriteLine("Now: " + age + "\n" + "After 10 years: " + (age + 10));
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement