Computer Science, asked by Mansi3978, 1 year ago

Program 3.
Write a program to receive 2 values and
swap these values​

Answers

Answered by anaghasethu1998
1

Explanation:

#include<studio.h>

void main()

{

int a, b, temp;

printf("Enter a") ;

scanf(&a) ;

printf("Enter b") ;

scanf(&b) ;

temp = a;

a=b;

b=temp;

printf("swapped") ;

printf ("a", a) ;

printf ("b", b) ;

}

Similar questions