12. WAP to swap 2 numbers using a temporary variable.

 

#include<stdio.h>

int i,j,temp;

void main()

{

        i=10,j=20;

        temp=i;

        i=j;

        j=temp;

        printf("Value of i = %d & j = %d\n",i,j);

}

Comments