Notizen
.Net Lab Assignment
Inhalt der Notizen (4)
Seite 1
1. How to write Hello World in the console.
Ans.
using System;
public class Program
{
public static void Main()
{
Console.WriteLine("Hello World");
Console.Readkey();
}
}
Seite 2
2. How to write Comments in C#.
Ans.
We can add:
" // " for single line comment.
" /* ..... */ " for multi line comments.
Seite 3
3. What are the Data types in C#?
Ans.
Seite 4
4. What are Enumerations in C#?
Ans.