/*
Two number are input through the keyboard into two location C and D .
Write a program to interchange the contents of C & D.
*/
#include<stdio.h>
#include<conio.h>
main()
{
int c,d,e;
printf("Enter the number at Loaction C and D....");
scanf("%d%d",&c,&d);
e=c;
c=d;
d=e;
printf("\n New Number at location C.. %d",c);
printf("\n New Number at location D.. %d",d);
printf("\n\n\nEnter Any key for Exit.......");
getch();
}
Output:-
Two number are input through the keyboard into two location C and D .
Write a program to interchange the contents of C & D.
*/
#include<stdio.h>
#include<conio.h>
main()
{
int c,d,e;
printf("Enter the number at Loaction C and D....");
scanf("%d%d",&c,&d);
e=c;
c=d;
d=e;
printf("\n New Number at location C.. %d",c);
printf("\n New Number at location D.. %d",d);
printf("\n\n\nEnter Any key for Exit.......");
getch();
}
Output:-
No comments:
Post a Comment