How to Input any Number in C#

How to Input any Number in C#

How to Input any Number in C#


How to Input any Number in c#, Input, and output in C#. C# Projects with Source Code


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Class_02
class Program
static void Main(string[] args)
int num1,num2,sum;
Console.WriteLine(“Enter Number 01 : “);
num1 = Convert.ToInt32( Console.ReadLine());
Console.WriteLine(“Enter Number 02 : “);
num2 = Convert.ToInt32(Console.ReadLine());
sum = num1 + num2;
Console.WriteLine(“Your Name is: {0}”, sum);




How to Input any Number in C#

Another Program: C# Program that Subtracts two user-defined numbers

C++ projects for beginners with source code

M.A Siddiqui

Hi, I am M.A Siddiqui. I'm a Computer Science Student, In this website, I'm teaching you Multiple languages and provides Projects and other Subjects Notes.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *