bsc

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

root / semester_1 / tuition-c / APC-SPS-002.c

APC-SPS-002.c (268B)


      1 /* WAP to swap two integers. Display both numbers
      2 before and after swap */
      3 
      4 #include<stdio.h>
      5 int main() {
      6 	int a = 10, b = 20, temp;
      7 	printf("Before swap A : %d, B : %d", a, b);
      8 	temp = a;
      9 	a = b;
     10 	b = temp;
     11 	printf("\nAfter swap A : %d, B : %d", a, b);
     12 	return 0;
     13 }
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror