How to add two numbers
Here i will tell you how to add two numbers .
Programming :
#include<conio.h>
#include<stdio.h>
#include<iostream.h>
void main(void)
{
clrscr();
int a,b,sum;
cout<<"Enter the 1st value ";
cin>>a;
cout<<"Enter the 2nd value ";
cin>>b;
sum=a+b;
cout<<"Here is the sum of your entered numbers "<<sum;
getche();
}
No comments:
Post a Comment