Math, asked by edpbnpapers1258, 1 year ago

Swapping of two numbers in c with temporary variable

Answers

Answered by officialrohitsharma
0

#include<stdio.h>

#include<conio.h>

void main()

{

int a,b,temp;

printf("Enter two number for swapping");

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

temp=a;

a=b;

b=temp;

printf("After swapping= %d %d",a,b);

getch();

}

Similar questions