pause at 31minutes

This commit is contained in:
2026-01-11 23:13:26 +01:00
parent 67ef71092a
commit 0a1934f95a
5 changed files with 160 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
# User input
## Console.ReadLine
```C#
Console.Write("Type your name : ");
String name = Console.ReadLine();
// Can cause an error if the user write another type than int
Console.Write("What's your age : ");
int age = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Hello " + name);
Console.WriteLine("you are " + age + " years old");
```