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.



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

Answer / 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

More C++ Interview Questions

What is the difference between an ARRAY and a LIST in C++?

1 Answers   IBS, TCS,


What is a virtual function in C++?

0 Answers   C DAC,


Tell How To Check Whether A Linked List Is Circular ?

1 Answers   IBS, Infosys,


What does it mean to take the address of a reference?

0 Answers   Amazon,


What is placement new?

1 Answers   Amazon,


What are Agilent PRECOMPILERS?

0 Answers   Agilent,


CDPATH shell variable is in(c-shell)

0 Answers   Siemens,


Write a C++ Program to Check Whether a character is Vowel or Consonant.

2 Answers  


Question on Copy constructor.

0 Answers   Alter,


In C++ what do you mean by Inheritance?

0 Answers   Accenture,


Discuss the role of C++ shorthands.

0 Answers   Adobe,


Write a C++ Program to Find whether given Number is Odd or Even.

1 Answers  


Categories