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


Please Help Members By Posting Answers For Below Questions

What is meant by stl in c++?

648


Who created stl?

646


What are stl algorithms?

615


Is string part of stl?

672


Why should a c++ programmer be interested in stl?

638






How stl is different from the c++ standard library?

637


What are the components of stl?

615


What do stl stand for?

629


What is a standard template library (stl)? What are the various types of stl containers?

666


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

2089


How does an stl file work?

644


What are the various types of stl containers?

727


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.

1368


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

1773


draw a flowchart that accepts two numbers and checks if the first is divisible by the second.

2854