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

0
4
digitalample eye
Write a c++ program to find the sum of two numbers.
Write a object oriented program to find the sum of two numbers.
C++ Program to find the sum of two numbers. [int a,b,c].
OOP Program to find the sum.

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();
}

LEAVE A REPLY

Please enter your comment!
Please enter your name here