Swapping of 2 numbers
Swapping of 2 numbers
#include<stdio.h>
int main()
{
int a ;
printf(“Enter a :ย “);
scanf(“%d,&a);
int b ;
printf(“Enter b :ย “);
scanf(“%d,&b);
int temp;
temp = a ;
a = b ;
b = temp ;
printf(“The value of a is %d\n, a);
printf(“The value of b is %d\n,b);
return 0;
}
Topics Covered :
- swapping of two numbersย
- swap two numbers
- swapping of 2 number in c program
- swapping in c language
- c tutorial for beginners
- swapping in c programmingย
- c language swapping program
Thanks for reading this blog. Hope you get satisfied with the blog and definitely this blog must have valued your time and effort of reading.
Take a time to connect our other digital creations such as Instagram , Facebook and Youtube.
ย Social Mediaย Linksย ofย Tech DCodeย :
ย YouTube :ย https://www.youtube.com/channel/UCjJnEdeugftBwQ3yMuD4B_A
ย Instagram :ย https://www.instagram.com/thetechdcode/
ย Facebook Page :ย https://www.facebook.com/thetechdcode
ย Twitter :ย https://twitter.com/thetechdcode
ย Telegram Channel :ย https://t.me/thetechdcode
ย Tech DCode Linktree :ย https://linktr.ee/thetechdcode
ย My Personal Handles :ย https://linktr.ee/virtualshivamin
ย Social Media Linksย ofย SHIVAM SINGHย (OWNER) :
ย Instagram :ย https://www.instagram.com/virtualshivamin/
ย Facebook Page :ย https://www.facebook.com/virtualshivamin/
ย Twitter :ย https://twitter.com/virtualshivamin/
ย Personal Linktree :ย https://linktr.ee/virtualshivaminย