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 c++ coding?

1141


What is a class template?

1033


Difference between an inspector and a mutator

1285


Tell me can a pure virtual function have an implementation?

979


What is the difference between passing by reference and passing a reference?

1031


Why do we use setw in c++?

1065


What are c++ redistributables?

988


What does n mean in c++?

1087


Define a nested class. Explain how it can be useful.

1049


How can you link a c++ program to c functions?

1065


How many namespaces are there in c++?

1016


How are pointers type-cast?

1069


Can non graphic characters be used and processed in C++?

1144


an operation between an integer and real always yeilds a) integer result b) real result c) float result

1117


What is late binding c++?

936