#include<conio.h>
#include<iostream.h>
void main()
{
clrscr();
int num1,num2;
cout<<"\nEnter Two Numbers" ;
cin>>num1>>num2;
cout<<"\nThe value of num1 and num2 is " <<"num1= " <<num1
<<" num2= "<<num2;
num1=num1+num2;
num2=num1-num2;
num1=num1-num2;
cout<<"\nNow The value of num1 and num2 is " <<"num1= " <<num1
<<" num2= "<<num2;
}
#include<iostream.h>
void main()
{
clrscr();
int num1,num2;
cout<<"\nEnter Two Numbers" ;
cin>>num1>>num2;
cout<<"\nThe value of num1 and num2 is " <<"num1= " <<num1
<<" num2= "<<num2;
num1=num1+num2;
num2=num1-num2;
num1=num1-num2;
cout<<"\nNow The value of num1 and num2 is " <<"num1= " <<num1
<<" num2= "<<num2;
}
No comments:
Post a Comment