Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / hr

Solution:
/* 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<<"
Enter second number :: ";
cin>>y;
sum=x+y;
cout<<"
Sum of two numbers [ "<<x<<" + "<<y<<" ] = "<<sum<<"
";
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

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the point of polymorphism?

1091


Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened

1609


What are separators in c++?

1132


What is const pointer and const reference?

1229


Differentiate between late binding and early binding.

1339


Which function cannot be overloaded c++?

1163


What is the use of vtable?

1192


What is pointer -to-members in C++? Give their syntax?

1076


Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

1156


Should the this pointer can be used in the constructor?

1075


Keyword mean in declaration?

1119


What does floor mean in c++?

1113


What do you mean by function and operator overloading in c++?

1111


How do you compile the source code with your compiler?

1103


What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random

1190