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
Explain how do you list a file’s date and time?
Explain what are preprocessor directives?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
What is actual argument?
Can main () be called recursively?
Write programs for String Reversal & Palindrome check
How can I read and write comma-delimited text?
What is #include stdio h?
What is the use of volatile?
What is the meaning of ?
How to compare array with pointer in c?
What is string concatenation in c?
Why is c used in embedded systems?
What is wrong in this statement?