Programming in C++ Swapping of two Integers

#include<iostream>
using namespace std;
int main()
{
int a,b,c;
cout<<"enter two numbers\n";
cin>>a>>b;
c=a;
a=b;
b=c;
cout<<"swap of two no. is\n"<<a<<b;
}

No comments:

Post a Comment

programme for armstrong number for 3 digit in java

armstrong number import java.util.Scanner; class Mittu {     public static void main(String []args)     {         Scanner s=new Sca...