Hai Muhammad Aslam Khan Waqa,If you want to write a C# program in notepad and then you want to compile it and run it successfully, you need to follow the below steps:1. Open a Notepad and write the program very carefully because C# is case sensitive and in notepad its difficult to maintains. So you need to be very careful while writing the program in Notepad.2. Once the program is written in notepad, you need to save it with .cs extension. Here .cs represents C Sharp and then only the visual studio can recognize this file by its C Sharp compiler.3. Now open the Visual Studio --> New Project --> Console application for C# template because your file can be understand by C Sharp compiler. 4. Write the command to compile the program as below:

C:>CSharp <path of the file>

Also you can change the directory to the file where you have saved your file and then just use the command:

D:>CSharp

It will compile your program.5. To run the application, press F56. The output will be on the console application result window.Hope it will be helpful to you.Regards,Pawan Awasthi(DNS MVM)+91 8123489140 (whatsApp), +60 14365 1476(Malaysia)pawansoftit@gmail.com

If you have the .NET v4 installed (so if you have a newer windows or if you apply the windows updates) then you can compile your code without visual studio, your code can be either in notepad or in any editorfollowing compiler exe's can be useful for it