Notes
.Net Lab Assignment
Content of the notes (4)
Page 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();
}
}
Page 2
2. How to write Comments in C#.
Ans.
We can add:
" // " for single line comment.
" /* ..... */ " for multi line comments.
Page 3
3. What are the Data types in C#?
Ans.
Page 4
4. What are Enumerations in C#?
Ans.