Tuesday, 4 October 2016

Program for adding two numbers .

#include<iostream.h>
#include<conio.h>
void main ()
{
clrscr();
int a,b,c;
cout<<“Enter the first number “;
cin>>a;
cout<<“Enter the second number “;
cin>>b;
c=a+b;
cout<<“The result is “<<c;
getch();
}

No comments:

Post a Comment

Basic Implementation of Array as a Pointer

#include<iostream.h> #include<conio.h> void main() { clrscr();   int arr[5];   cout<<"Enter 5 nos. ";   f...