C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Add Two Numbers Value Enter By User in Console Application
WhatsApp
Krishna Rajput Singh
Feb 06
2016
68.6
k
0
3
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Text;
using
System.Threading.Tasks;
namespace
add
{
class
Program
{
static
void
Main(
string
[] args)
{
int
Number1, Number2;
Console.WriteLine(
"please enter the Number1"
);
Number1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(
"please enter the Number2"
);
Number2 = Convert.ToInt32(Console.ReadLine());
int
Result;
Result = Number1 + Number2;
Console.WriteLine(
"Sum of two Numbers:"
+ Result.ToString());
Console.ReadLine();
}
}
}
Console Application
Visual studio
C#
Up Next
Add Two Numbers Value Enter By User in Console Application