Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //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.
- using System;
- namespace Vuzrasten
- {
- class Program
- {
- static void Main()
- {
- Console.Write("Enter your age: ");
- int age = Convert.ToInt32(Console.ReadLine());
- Console.WriteLine("Now: " + age + "\n" + "After 10 years: " + (age + 10));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement