bsc

Comprehensive codebase and cou...
Log | Files | Refs | README | LICENSE

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 }
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror