fork download
  1. #include <iostream>
  2. using namespace std;
  3. int a,b,r;
  4. int main()
  5. {
  6. cin>>a>>b;
  7. while(b!=0)
  8. {
  9. a=b;
  10. b=r;
  11. r=a%b;
  12. cout<<"(a,b)= "<<a;
  13. return 0;
  14. }
  15. }
Success #stdin #stdout 0.01s 5500KB
stdin
 
stdout
Standard output is empty