Vegetarianboy30

impostor detector in C++

Jan 19th, 2021
1,119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  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. }  
Add Comment
Please, Sign In to add comment