Computer Science, asked by nithinkumar6662643, 1 year ago

write a c++program to read any two values. swap them and show the output. ​

Answers

Answered by aditimoulik2001
0

Easy

Explanation:

#include<stdio.h>

#include<iostream.h>

void main(void)

{

int a,b,t;

cout<<" Enter a and b which are to be swapped :";

cin>>a>>b;

t=a;

a=b;

b=t;

cout<<"\nAfter swapping, a and b are "<<a<<"\t"<<b<<" respectively";

return;

}

Don’t hesitate to consult for doubt in the comments below and Don't forget to mark it the brainliest if it helps.. #BAL #answerwithquality

Answered by sivaleeba10
0

Explanation:

thug is a good idea is to bring me to do 2 drawing and I have received the following file

Similar questions