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
Older Article
if value of an angle is input through the keyboard, write a program to print all its trigonometric ratios.
Given The Length And Breadth Of A Rectangle, Write A Program To Find Whether The Area Of The Rectangle Is Greater Than Its Perimeter
Code GuruFeb 27, 2019write a program to receive value of latitude(l1 and l2) and longitude (g1, g2), in degrees, of two places on the earth and output the distance (d) between them in nautical mile. the formula for distance in nautical mile is
Code GuruFeb 22, 2019Write a program to receive cartesian co-ordinates (x,y) of an point and convert them into polar co-ordinates (r,o)
Code GuruFeb 22, 2019
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;
}