#include<conio.h>
#include<iostream.h>
void main()
{
clrscr();
int *p,*q ,a,b ,sum;
cout<<"Enter Two Numbers";
cin>>a>>b;
p=&a;
q=&b;
sum=*p+*q;
cout<<"Sum is"<<sum;
getch();
}
#include<iostream.h>
void main()
{
clrscr();
int *p,*q ,a,b ,sum;
cout<<"Enter Two Numbers";
cin>>a>>b;
p=&a;
q=&b;
sum=*p+*q;
cout<<"Sum is"<<sum;
getch();
}
No comments:
Post a Comment