Computer Science, asked by rykv4376, 9 days ago

Write a program to take any two numbers and interchange their values using third variable

Answers

Answered by dineshganta21
0

Answer:

# include <stdio.h>

void main()

{

int a, b, temp;

printf("a value") ;

scanf("℅d", &a) ;

printf("b value") ;

scanf("℅d", &b) ;

temp=a;

a=b;

b=temp;

printf("numbers are℅d,℅d", a, b) ;

}

Explanation:

temp is assigned with a value then a value assigned with b value now b value assigned with temp value

Similar questions