Computer Science, asked by anvipopli45, 1 year ago

program to swap two numbers in c++ ..using cout and cin instead of printf and scanf

Answers

Answered by abhijitgupta2
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();
}
Similar questions