-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
43 lines (29 loc) · 1.15 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
namespace Lesson2
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
string firstName;
string lastName;
Console.WriteLine("Enter your first name: ");
firstName = Console.ReadLine();
Console.WriteLine("Hello, " + firstName);
Console.WriteLine("Enter your last name: ");
lastName = Console.ReadLine();
//Console.WriteLine("Nice to meet you, " + firstName + " " + lastName);
//I'm just a comment
Console.WriteLine("Nice to meet you, {0} {1}!", firstName, lastName);
string color;
Console.WriteLine("Whatś your favourite color?");
color = Console.ReadLine();
Console.WriteLine("You favourite color is {0}.", color);
Console.WriteLine(firstName + ", " + "How old are you?");
string input = Console.ReadLine();
Console.WriteLine("You are" + " " + input + " " + "years oled.");
Console.ReadLine();
}
}
}