Introduction
In this article, you will learn how to run C# programs using notepad and Visual Studio command properties. it should be - Open the Notepad, write the program, and after that run the command prompt.
Requirements
- Notepad
- Visual Studio 2012 ARM phone tool command prompt
- C#.
Step 1. Open the new notepad with shortcut keys Ctrl+N.

Step 2. Here, we should write the C# code or program.


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication8 {
class TextWord {
public void print() {
Console.WriteLine("hai welcome to our c# program");
Console.ReadLine();
}
}
class Arithmetic: TextWord {
public void sum() {
int a = 10;
int b = 20;
int c = a + b;
int d = a - b;
int e = a * b;
Console.WriteLine("The Addition value is an:" + c);
Console.WriteLine("The Subtraction value is an:" + d);
Console.WriteLine("The Multiplication value is an:" + e);
Console.ReadLine();
}
}
class example {
static void Main(string[] args)
. {
TextWord obj1 = new TextWord();
obj1.print();
Arithmetic obj2 = new Arithmetic();
obj2.sum();
}
}
}
Step 3. We can save the program at a particular file location with shortcut Ctrl+S.


Step 4. Now, go to Visual Studio 2012 ARM Phone Tool Command Prompt and open the window.

Step 5. Here, type your program location colon.

Step 6. The next step is to go to the particular folder because program is stored in that folder.

Step 7. Now, compile the C# program with this command.


Step 8. Now, execute the current program.

Step 9. Now, we can see the output.


Muthuramalingam DuraipandiPosted Oct 4, 2016, 7:29 AM
Thank u
ChippPosted Oct 1, 2016, 1:38 PM
Can't we use the ordinary command prompt?
Lokesh VarmanPosted Sep 29, 2016, 7:48 AM
Nyc broooo
Ankur VermaPosted Sep 29, 2016, 6:29 AM
Good..
Prasanna MuraliPosted Sep 29, 2016, 5:21 AM
Nice work...
Rajib Das GuptaPosted Sep 29, 2016, 12:45 AM
It's Great !
SubashPosted Sep 29, 2016, 12:38 AM
Good work..
Harpreet SinghPosted Sep 28, 2016, 11:19 AM
Good one post.
Shekhar PanwarPosted Sep 28, 2016, 10:07 AM
nice..
Kapi ShivharePosted Sep 28, 2016, 10:06 AM
nice
Manikandan VengadasalamPosted Sep 28, 2016, 8:08 AM
Super post and same also for msword?
Satish Kumar VadlavalliPosted Sep 28, 2016, 7:59 AM
Good one
Nikhil SanganiPosted Sep 28, 2016, 7:30 AM
Nice.
Santosh KumarPosted Sep 28, 2016, 7:05 AM
Good
Manav PandyaPosted Sep 28, 2016, 3:35 AM
Great post sir ...
Vignesh ManiPosted Sep 27, 2016, 6:20 PM
Nice