Mode:
Duration:
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
using System;
class Program
{
static void Main()
{
// Variables and Data Types
int age = 25;
double price = 99.99;
string name = "Alice";
bool isActive = true;
// Constant
const float pi = 3.14f;
// Operators
int sum = age + 5;
// Type Casting
double converted = (double)age;
// Input
Console.WriteLine("Enter your name:");
string inputName = Console.ReadLine();
// Output
Console.WriteLine("Hello " + inputName);
Console.WriteLine($"Age: {age}, Price: {price}, PI: {pi}");
}
}Coding works best on desktop or with an external keyboard.