#include<iostream>
#include<stdio.h>
using namespace std;
int main (){
    int m=20;
    int n=8;
    int x=m;
    int y=n;
    while((x%y)!=0)
    {
        int temp=y;
        y=(x%y);
        x=temp;
    }
    cout<<y;
    system("pause"); 
    return 0;
}

 

相关文章:

  • 2022-12-23
  • 2022-01-30
  • 2021-07-10
  • 2021-05-06
  • 2021-09-08
  • 2021-08-05
  • 2021-06-02
  • 2022-12-23
猜你喜欢
  • 2022-02-20
  • 2021-12-17
  • 2022-12-23
  • 2021-11-27
  • 2021-12-09
  • 2022-12-23
相关资源
相似解决方案