My issue
debug this code
My code
#include <stdio.h>
int main() {
// your code goes here
int a,b,temp;
scanf("%d %d",&a,&b);
// swapping with using third variable
printf("enter value for a: ");
scanf("%d", &a);
printf("enter value for b: ");
scanf("%d", &b);
printf("\nBefore swapping: a = %d\t b = %d", a, b);
temp = a;
a = b;
b = temp;
printf("nAfter swapping : a = %d\t b = %d", a,b);
return 0;
}
//swapping without using third variable
}
Learning course: Learn C Programming
Problem Link: https://www.codechef.com/learn/course/rcpit-programming-c/RCPITLPC37/problems/LJAJAG21