TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Add Two Numbers Value Enter By User in Console Application
Krishna Rajput Singh
Feb 06
2016
Code
63.3
k
0
3
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
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#