fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. long long NWW(long long a,long long b){
  5. long long c;
  6. while(b!=0){
  7. c=a%b;
  8. a=b;
  9. b=c;
  10. }
  11. return a;
  12. }
  13.  
  14. int main() {
  15. long long x,y,z;
  16. int a;
  17. for(int i=1;i<=a;i++){
  18. cin>>x>>y;
  19. cout<<(NWW(x,y))<<endl;
  20. }
  21. return 0;
  22. }
Success #stdin #stdout 0s 4532KB
stdin
4 5 6
stdout
Standard output is empty