plz answer....A program that takes 3 variables e.g a,b,c in
as seperate parameters and rotates the values stored so
that value goes a to b, b to c and c to a .
Answer Posted / ruchi
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c,d;
printf("\nEnter the three numbers ");
scanf("%d %d %d",&a,&b,&c);
a=a+b;
b=a-b;
d=c;
c=a-b;
a=d;
printf("\nNow the values are ");
printf("%d %d %d",a,b,c);
getch();
}
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
What is the basic structure of c?
Explain the advantages of using macro in c language?
What is wrong in this statement? scanf(ā%dā,whatnumber);
What is a sequential access file?
How can you access memory located at a certain address?
How can I dynamically allocate arrays?
#include
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
please give me some tips for the placement in the TCS.
What are the benefits of organizational structure?
What was noalias and what ever happened to it?
What is the method to save data in stack data structure type?
what value is returned to operating system after program execution?
What is difference between scanf and gets?