编辑代码

class Main {

    public static void f(int l,int w){
        if(l % w == 0){
            System.out.println(w);
            return ;
        }
        else{
            f(w,l%w);
        }
    }

	public static void main(String[] args) {
        //JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
		f(1680,640);
        
	}
}