Week 1: Lection 1

1 min read

Hello, and welcome, my fellow coders, to my first article! I started learning C# after a friend recommended it to me. So here we are! Week 1: Lesson 1: Variables and basic operations. Today's lesson was very easy because this is basic coding theory, which I have known for years. I learnt how it functions in C# and how the syntax works. I completed a simple control task set by ChatGPT: four variables (name, age, height and student status), which I then wrote out in the terminal.
string name = "Oliver Seidl";
int age = 15;
double height = 1.63;
bool isAdult = false;
Console.WriteLine("Name: " + name);
Console.WriteLine("Age: " + age);
Console.WriteLine("Height: " + height);
Console.WriteLine("Is Adult: " + isAdult);
0
Subscribe to my newsletter
Read articles from Oliver Seidl directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
