Computer for SEE and NEB

It is a complete SEE and NEB solution for computer science. It includes Computer Fundamentals, Database (SQL), Programming in C QBASIC, CSS, JavaScript, and PHP for beginners.

Breaking

Post Top Ad

Your Ad Spot

Sunday, July 10, 2022

C program to swap input two numbers for SEE and NEB

 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

Post Top Ad

Your Ad Spot

Pages