APC-SPS-002.c (405B)
1 /* 2 * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 3 * Repo: https://github.com/notamitgamer/bsc 4 * License: MIT 5 */ 6 7 /* WAP to swap two integers. Display both numbers 8 before and after swap */ 9 10 #include<stdio.h> 11 int main() { 12 int a = 10, b = 20, temp; 13 printf("Before swap A : %d, B : %d", a, b); 14 temp = a; 15 a = b; 16 b = temp; 17 printf("\nAfter swap A : %d, B : %d", a, b); 18 return 0; 19 }