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.
Tags
# C language
# Chapter-2
Share This
Newer Article
Consider a currency system in which there are notes of seven denominations, namely, Rs 1, Rs 2, Rs 5, Rs 10, Rs 50, Rs 100. if a sum of Rs N is entered through the keyboard, write a program to compute the smallest number of notes that will combine to give Rs. N.
Chapter-2
Labels:
C language,
Chapter-2
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;
}