My issue
Write a program to swap two variables’ values with and without using third variable.
Output Format
Output should be in different lines for both conditions:-
using third variable and
without using third variable.
Sample 1:
Input
Output
4 3
3 4
3 4
Sample 2:
Input
Output
12 43
43 1
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
//swapping without using third variable
}
Learning course: Learn C Programming
Problem Link: https://www.codechef.com/learn/course/rcpit-programming-c/RCPITLPC07/problems/LJAJAG21