Search Your Questions
Wednesday, February 20, 2019
Home
C language
Chapter-2
Two numbers are input through the keyboard into two locations C and D. write a program to interchange the content of C and D.
Two numbers are input through the keyboard into two locations C and D. write a program to interchange the content of C and D.
Subscribe to:
Post Comments (Atom)
This program is so wrong
ReplyDeletestill uploading it so confidence
Have some Shame !
there you go...right one
Delete#include
int main()
{
int c,d,e;
printf("Enter your c value \n");
scanf("%d",&c);
printf("Enter your d value \n");
scanf("%d",&d);
e=c;
c=d;
d=e;
printf("Your c value is %d\n",c);
printf("Your d value is %d\n",d);
}
do u have any sense its wrong program
ReplyDelete#include
ReplyDelete#include
int main()
{
int a,b,c,d;
printf("Enter Value of C: ");
scanf("%d",&c);
printf("Enter value of D: ");
scanf("%d",&d);
a=c;
b=d;
c=b;
d=a;
printf("\nValue of C: %d \nValue of D: %d",c,d);
getch();
return 0;
}