# Write a C++ Program to find Addition of Two Numbers

By | 24.12.2016

Write a C++ Program to find Addition of Two Numbers. Here’s simple Program to Add Two Numbers in C++ Programming Language.

Here is source code of the C++ Program to find Addition of Two Numbers. The C++ program is successfully compiled and run(on Codeblocks) on a Windows system. The program output is also shown in below.

## SOURCE CODE : :

```/*  C++ Program to find Addition of Two Numbers  */

#include<iostream>

using namespace std;

int main()
{
int x,y,sum;

cout<<"Enter first number :: ";
cin>>x;
cout<<"\nEnter second number :: ";
cin>>y;

sum=x+y;

cout<<"\nSum of two numbers [ "<<x<<" + "<<y<<" ] = "<<sum<<"\n";

return 0;
}```

### Output : :

```/*  C++ Program to find Addition of Two Numbers  */

Enter first number :: 12

Enter second number :: 34

Sum of two numbers [ 12 + 34 ] = 46

Process returned 0```

Above is the source code for C++ Program to Add Two Numbers which is successfully compiled and run on Windows System.The Output of the program is shown above .

If you found any error or any queries related to the above program or any questions or reviews , you wanna to ask from us ,you may Contact Us through our contact Page or you can also comment below in the comment section.We will try our best to reach up to you in short interval.

4 1 vote
Article Rating
Tags: ,

My name is Tunde Ajetomobi, a Tech Enthusiast and Growth Hacker. I enjoy creating helpful content that solves problem across different topics. Codezclub is my way of helping young aspiring programmers and students to hone their skills and find solutions on fundamental programming languages.

Subscribe
Notify of

Inline Feedbacks

i want the result adding two numbers in text value
example

25+20 = 45 ( forty five only) .

#include <iostream>
using namespace std;
int main ()
{
int a=25;
int b=20;
int some =0;
some = a+b;
cout << some ;
return 0;
}

1. The grey characters on a black background make it difficult to check for errors
2. If it is not possible to copy the code on my compiler how can I check for errors.