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