C program to swap input two numbers for SEE and NEB
/*Swapping between two numbers*/
#include<stdio.h>
#include<conio.h>
main()
{
int a,b,temp;
printf("\nInput First Number:- ");
scanf("%d",&a);
printf("\nInput Second Number:- ");
scanf("%d",&b);
printf("\nNumbers Before Swapping\n");
printf("A = %d\tB = %d",a,b);
temp=a;
a=b;
b=temp;
printf("\nNumbers After Swapping\n");
printf("A = %d\tB = %d",a,b);
getch();
}
No comments:
Post a Comment