Introduction
In this article, we will learn about how to run C# programs using notepads and Visual Studio command properties.
Prerequisites
- Notepad.
- Visual Studio 2012 ARM Phone Tool Command Prompt
- C#.
Step 1
Open Notepad.
- Press Windows key + R
- Type Notepad in Run box.

Step 2
Here, write the C# program in the Notepad.
Here, write the C# program in the Notepad.
- 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();
- }
- }
- }










Join the conversation! Your thoughts help the community grow.