Pages

Tuesday, January 26, 2016

A Program that sum two digit


#include<iostream>
#include<conio.h>
using namespace std;
main()
{
int a,b,sum;                         //three variable of integer type
a=10;           
b=20;
sum=a+b;                            //sum=a+b it sum a and b values
cout<<"The sum of two digit is="<<sum<<endl;
                                                                            //cout show result
getch();               //getch is used to stay on screen while we can not press any key.

}

No comments:

Post a Comment