Tuesday, 10 July 2018

C++ Program Sum Of Two Number


Information Of this Program In Add Two Number:-

Sum Of Two Number in C++ First of all in this program C++ Program add two number start the header file include iostream then start the main function then the three variable declared the a,b,c the assign the value of a and assign the value of b the store the result in c variable then cout the result in screen

CODE:-

#include<iostream>

using namespace std;

int main()

{

int a,b,c;

a=20;

b=30;

c=a+b;

cout<<"Sum Of two number"<<c;

}

OUTPUT:-

Sum Of to number 50

No comments:

Post a Comment

Thanks for comment