answersLogoWhite

0


Best Answer

int main()

{

int num1;

int num2;

int result = num1 + num2;

return 0;

}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program in c plus plus language to add 2 numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

A program c plus plus on automorphic numbers or not?

how to write a program that counts automorphic number from 1 to 999


How do you write a C plus plus program that will display the first 10 positive prime numbers?

By learning how to program on C+.


How do you write an Algorithm for a C plus plus Program?

You don't write an algorithm for a C++ program, unless you are documenting the C++ program after-the-fact. The normal procedure is to write the algorithm first, in a language independent fashion, and then translate that stated algorithm into C++ code, or into whatever language you wish.


Write a program in C programming language that computes the roots of the quadratic equation ax2 plus bx plus c?

Write your program and if you are having a problem post it here with a description of the problem you are having. What you are asking is for someone to do your homework for you.


Write a program in c plus plus for finding the sum of first 10 even numbers?

int i, sum = 0; for (i=0; i<20; i+=2) sum+=i;


Write a C plus plus program to find out the square of first 10 numbers?

#include<iostream> int main() { int i=0; while(i++<10) std::cout<<i*i<<std::endl; }


Can you use C plus plus with Excel spreadsheets?

This question is irrelative because C++ is a language and Excel is a software. The thing is that we can't use C++ with Excel, but we can write a program like excel in C++.


Write a program in c plus plus to implement macro processor?

Don't write, it is already written, google for 'cpp'.


Write a program to print odd numbers In C plus plus between 51 to 100?

#include <iostream> int main() { for(int i=51; i <= 100; i+=2) { cout << i << endl; } return 0; }


How do you write program to convert meter to kilometer in c plus plus?

Divide it by 1000.


Do I need to write a program to find a substring in a given string in c plus plus?

No.


Writing a program in a language such as c plus plus or java is known as what?

Object Oreinted Programming