Write a program to print the swapping in two no and using
three variable.
Answer Posted / saiteja gangisetty
#include<stdio.h>
void main()
{
int a,b,temp;
printf("enter a, b values");
scanf("%d%d",a,b);
temp=a;
a=b; (or) // b=a*b/a=b;
b=temp;
printf("a=%d and b=%d",a,b);
}
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is meant by stl in c++?
Who created stl?
What are stl algorithms?
Is string part of stl?
Why should a c++ programmer be interested in stl?
How stl is different from the c++ standard library?
What are the components of stl?
What do stl stand for?
What is a standard template library (stl)? What are the various types of stl containers?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
How does an stl file work?
What are the various types of stl containers?
a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.
To modify an, existing worksheet. What steps are involved for: 1. Inserting and deleting rows and columns. 2. Printing cell formulas 3Jld displayed values 3. Using the page setup command
draw a flowchart that accepts two numbers and checks if the first is divisible by the second.