Vegetarianboy30

impostor detector in C++

Jan 19th, 2021
819
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>  
  2. using namespace std;  
  3. int main()  
  4. {  
  5. int a=5, b=10;      
  6. cout<<"Before swap a= "<<a<<" b= "<<b<<endl;      
  7. a=a*b; //a=50 (5*10)    
  8. b=a/b; //b=5 (50/10)    
  9. a=a/b; //a=10 (50/5)    
  10. cout<<"After swap a= "<<a<<" b= "<<b<<endl;      
  11. return 0;  
  12. }  
RAW Paste Data