SWAP_IT- Editorial

PROBLEM LINK:

Practice
Contest

Author: Vidya Kale
Tester: Vidya Kale
Editorialist: Vidya Kale

DIFFICULTY:

CAKEWALK

PREREQUISITES:

None

PROBLEM:

Their are two integer numbers A and B . Chef want to swap these two numbers.

QUICK EXPLANATION:

Print to numbers after swapping.

EXPLANATION:

Print two number whose value are swap.

SOLUTIONS:

Setter's Solution
    #include <iostream>
   using namespace std;

   int main() {
       int A,B;
       cin>>A>>B;
       int temp;
       temp=A;
       A=B;
       B=temp;
       cout<<A<<endl;
       cout<<B<<endl;
  return 0;

}

Tester's Solution
    #include <iostream>
   using namespace std;

   int main() {
       int A,B;
       cin>>A>>B;
       int temp;
       temp=A;
       A=B;
       B=temp;
       cout<<A<<endl;
       cout<<B<<endl;
  return 0;

}

Editorialist's Solution
    #include <iostream>
   using namespace std;

   int main() {
       int A,B;
       cin>>A>>B;
       int temp;
       temp=A;
       A=B;
       B=temp;
       cout<<A<<endl;
       cout<<B<<endl;
  return 0;

}