Computer Science, asked by yashikakamboj3030, 1 year ago

program to accept values of two numbers and interchange their values

Answers

Answered by Aishwarya98
3

#include<stdio.h>

#include<conio.h>

int main()

{

int num1,num2,temp;

scanf("%d %d",&num1,&num2); //to accept the two numbers as input

temp=num1;

num1=num2;

num2=temp;

printf("%d %d",num1,num2); //to display the interchanged numbers

return 0;

}

Similar questions