C++ Program to find the sum of two numbers [int a,b,c].

Program to find the sum of two numbers [int a,b,c].

Write a C++ Program to find the sum of two numbers;

C++ Code

#include<iostream.h>
#include<conio.h>
void main()
{
int a,b,c;
cout<<"Enter two numbers:";
cin>>a>>b;
c=a+b;
cout<<"The sum of two numbers is:"<<c;
cout<<endl<<"Thank you";
cout<<endl<<"Press any key to continue...";
getch();
}

TutsMaster.org

Tutsmaster.org provides tutorials related to tech and programmings. We are also setting up a community for the users and students.