Write a program to swap two numbers with the help of third variable.

Written by Sharad Raj on 13th of March, 2018

BASIC PROGRAMS   C LANGUAGE PROGRAMS

PROGRAM CODE

#include<stdio.h>

#include<conio.h>

void main()

{

int a,b,c;

clrscr();

printf(Enter two numbers : );

scanf(%d%d,&a,&b);

c=a;

a=b;

b=c;

printf(numbers after swapping are :%d and %d,a,b);

getch();

}