Addition of 2 Numbers: C++

This video tutorial illustrates a simple program of adding two integer numbers.

Full Source Code

#include
#include

void main()
{

 int a, b;
 clrscr();

 cout>a>>b;

 int sum = a + b;

 cout

We can declare variables anywhere in a cpp program.

Video Tutorial: Addition of 2 Integer Numbers



YouTube Link: https://www.youtube.com/watch?v=GBbOJZLkBBA [Watch the Video In Full Screen.]



In this program we take input from the user, add it and then echo the result back to the screen.

Output
Enter two no
100
200

Sum is: 300