program to swap two numbers in c++ ..using cout and cin instead of printf and scanf
Answers
Answered by
0
#include<stdio.h>
#include<conio.h>
void main()
int a,b;
clrscr();
{
printf("%d%d",&a,&b);
a=a+b;
b=a-b;
a=a-b;
scanf("%d%d",a,b);
getch();
}
#include<conio.h>
void main()
int a,b;
clrscr();
{
printf("%d%d",&a,&b);
a=a+b;
b=a-b;
a=a-b;
scanf("%d%d",a,b);
getch();
}
Similar questions