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 Uppgift1
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Please Enter your name");
- string userName;
- userName = Console.ReadLine();
- Console.WriteLine("Welcome " + userName + "to C# World!");
- Console.WriteLine("How old are you " + userName+"?");
- Console.WriteLine("Your age is + age");
- int userAge;
- userAge = Convert.ToInt16(Console.ReadLine());
- Console.Write("Your Age is " + userAge);
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement