Practical-02
Problem Statement
Write a program using different namespaces.
Solution
To solve this problem, we can use C# and demonstrate the usage of different namespaces.
- Create a new C# Console Application project in Visual Studio.
- In the Solution Explorer, right-click on the project name and select "Add" > "Class".
- Name the class "NamespaceDemo.cs".
- Open the "NamespaceDemo.cs" file.
- Add the following code to demonstrate the usage of different namespaces:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NamespaceDemo
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello, World!");
}
}
}