herrDeng網內搜尋

自訂搜尋

Ads

2014年6月3日 星期二

Java作業12計算GCD(a,b,c,d)

計算GCD(a,b,c,d)

35 則留言:

B10233061 吳興強 提到...


public class ex1 {

static public int GCD(int x,int y){
int r=x%y;
if(r==0)return y;
else return GCD(y,r);

}
static public int GCD(int a,int b,int c,int d){

return GCD(GCD(a,b),GCD(c,d));

}



public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;

System.out.println("GCD="+GCD(a,b,c,d));
}
}

B10233069連于傑 提到...

package hello603;

public class Ex5 {
static public int Gcd(int x,int y){
int r=x%y;
if(r==0)return y;
else return Gcd(y,r);
}
static public int Gcd(int a,int b,int c,int d){
return Gcd(Gcd(a,b),Gcd(c,d));
}
public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(Gcd(a,b,c,d));

}

}

B10233089 提到...

package hello603;
public class ex5 {
static public int GCD(int x,int y){
int r=x%y;
if(r==0)return y;
else return GCD( y , r );
}
static public int GCD (int a,int b,int c,int d){
return GCD(GCD(a,b),GCD(c,d));
}
public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(GCD(a,b,c,d));
}
}

B10233067 提到...

package hello0603;
public class ex5 {
static public int GCD(int x,int y){
int r=x%y;
if(r==0)return y;
else return GCD(y,r);
}
static public int GCD(int a,int b,int c,int d){
return GCD(GCD(a,b),GCD(c,d));
}
public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(GCD(a,b,c,d));
}
}

B10233062 黃聖評 提到...

package sha111;

public class dfsdfd5f4969 {

static public int Gcd(int x,int y){
int r=x%y;
if(r==0)return y;
else return Gcd(y,r);
}
static public int Gcd(int a,int b,int c,int d){
return Gcd(Gcd(a,b),Gcd(c,d));
}
public static void main(String[] args) {

int a=33;
int b=36;
int c=99;
int d=96;

System.out.println(Gcd(a,b,c,d));
}
}

B10233082 唐偉強 提到...

package fvfvfvfvfvf;

public class cdcdcdc {
public static int gcd(int x, int y)
{
int r=x%y;
if(r==0) return y;
else return gcd(y, r);
}
static public int GCD(int a,int b,int c,int d){
return gcd(gcd(a,b),gcd(c,d));
}

public static void main(String[] args){

{
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(GCD(a,b,c,d));
}


}
}

Y10211064黃耀葦 提到...

package dcdcdcdcd;

public class wswswswswsw {
public static int gcd(int x, int y)
{
int r=x%y;
if(r==0) return y;
else return gcd(y, r);
}
static public int GCD(int a,int b,int c,int d){
return gcd(gcd(a,b),gcd(c,d));
}

public static void main(String[] args){

{
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(GCD(a,b,c,d));
}


}
}

B10233110徐上竣 提到...

package asd123;

public class qwe123 {

static public int GCD(int x,int y){
int r=x%y;
if(r==0) return y;
else return GCD (y,r);
}
static public int GCD(int a,int b,int c,int d){
return GCD (GCD(a,b),GCD(c,d));
}
public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(GCD(33,36,99,96));
}
}

B10233081 藍立凱 提到...

package hello;

public class ex5 {
static public int GCD(int x, int y){
int r=x%y;
if(r==0) return y;
else return GCD (y,r);
}
static public int GCD(int a, int b, int c , int d){
return GCD (GCD(a,b),GCD(c,d));
}
public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(GCD(a,b,c,d));

}

}

B10233084 陳億如 提到...

package hello0603;

public class ex5 {
static public int GCD(int x,int y){
int r=x%y;
if(r==0) return y;
else return GCD (y,r);
}
static public int GCD(int a, int b, int c , int d){
return GCD (GCD(a,b),GCD(c,d));
}
public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(GCD(a,b,c,d));

}
}

B10233090 提到...

package yy;

public class yeyey {

static public int GCD(int x,int y){
int r=x%y;
if(r==0) return y;
else return GCD(y,r);
}
static public int GCD(int a, int b ,int c, int d){
return GCD (GCD(a,b),GCD(c,d));
}
public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(GCD(33,36,99,96));

}

}

B10233090 提到...

package yy;

public class yeyey {

static public int GCD(int x,int y){
int r=x%y;
if(r==0) return y;
else return GCD(y,r);
}
static public int GCD(int a, int b ,int c, int d){
return GCD (GCD(a,b),GCD(c,d));
}
public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(GCD(33,36,99,96));

}

}

B10233075 謝如華 提到...

package hello;

public class ex5 {
static public int GCD(int x, int y){
int r=x%y;
if(r==0) return y;
else return GCD (y,r);
}
static public int GCD(int a, int b, int c , int d){
return GCD (GCD(a,b),GCD(c,d));
}
public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(GCD(a,b,c,d));

}

}

B10233063 張宜禎 提到...

package hello;

public class ex5 {
static public int GCD(int x, int y){
int r=x%y;
if(r==0) return y;
else return GCD (y,r);
}
static public int GCD(int a, int b, int c , int d){
return GCD (GCD(a,b),GCD(c,d));
}
public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(GCD(a,b,c,d));

}

}

B10233087 黃少洋 提到...

package herr1;

public class herr1 {
public static int gcd(int x, int y)
{
int r=x%y;
if(r==0) return y;
else return gcd(y, r);
}
static public int GCD(int a,int b,int c,int d){
return gcd(gcd(a,b),gcd(c,d));
}

public static void main(String[] args){

{
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(GCD(a,b,c,d));
}


}
}

b10233068邱佳函 提到...

package hello63;

public class ex1 {

static public int GCD(int x, int y) {
int r=x%y;
if(r==0) return y;
else return GCD(y, r);
}
static public int GCD(int a, int b, int c, int d){
return GCD(GCD(a,b),GCD(c,d));
}

public static void main(String[] args) {
int a=33;
int b=66;
int c=99;
int d=96;
System.out.println(GCD(a,b,c,d));
}

}

B10233076 提到...

package hello;

public class ex {
static public int Gcd(int x,int y){
int r=x%y;
if (r==0)return y;
else return Gcd(y,r);
}
static public int Gcd(int a,int b,int c,int d){
return Gcd(Gcd(a,b),Gcd(c,d));
}

public static void main(String[]args){
int a=33;
int b=66;
int c=99;
int d=96;
System.out.println(Gcd(a,b,c,d));

}

}

B10233095李元宏 提到...

package B10233095;

public class G00D {

static public int Gcd(int x,int y){
int r=x%y;
if(r==0)return y;
else return Gcd(y,r);
}
static public int Gcd(int a,int b,int c,int d){
return Gcd(Gcd(a,b),Gcd(c,d));
}
public static void main(String[] args) {

int a=33;
int b=36;
int c=99;
int d=96;

System.out.println(Gcd(a,b,c,d));
}
}

b1023308060 陳芊慈 提到...

package aaaaaaaaaaaaa;

public class aaaaaaaaaaaaaaaaaaaaaaaaaa {

static public int GCD(int x, int y){
int r=x%y;
if(r==0) return y;
else return GCD(y,r);
}
static public int GCD(int a, int b, int c, int d){
return GCD(GCD(a,b),GCD(c,d));
}
public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(GCD(a,b,c,d));
}
}

B10233086 張進億 提到...

package yoooooooooooooooooooooooooooooooooooooooooooo;

public class yoo2 {
static public int GCD(int x, int y) {
int r=x%y;
if(r==0)return y;
else return GCD(y,r);
}
static public int GCD(int a, int b, int c, int d){
return GCD(GCD(a,b),GCD(c,d));
}

public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(GCD(a,b,c,d));
}

}

b10233109 提到...

package hello;

public class hello {
static public int GCD(int x, int y){
int r=x%y;
if(r==0) return y;
else return GCD( y, r);
}
static public int GCD(int a, int b, int c, int d){
return GCD(GCD(a,b),GCD(c,d));
}
public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(GCD(a,b,c,d));
}

}

Y10211027張君弘 提到...

package helen;
public class helen0603 {

static public int GCD(int x,int y){
int r=x%y;
if(r==0) return y;
else return GCD( y, r);
}
static public int GCD(int a, int b,int c,int d){
return GCD (GCD(a,b),GCD(c,d));
}
public static void main(String[] args){
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(GCD(a,b,c,d));
}
}

B10233097 邱宥甄 提到...

public class ASD {

static public int GCD(int x,int y){
int r=x%y;
if(r==0)return y;
else return GCD(y,r);

}
static public int GCD(int a,int b,int c,int d){

return GCD(GCD(a,b),GCD(c,d));

}



public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;

System.out.println("GCD="+GCD(a,b,c,d));
}
}

B10233098 陳孟緣 提到...

public class ASD {

static public int GCD(int x,int y){
int r=x%y;
if(r==0)return y;
else return GCD(y,r);

}
static public int GCD(int a,int b,int c,int d){

return GCD(GCD(a,b),GCD(c,d));

}



public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;

System.out.println("GCD="+GCD(a,b,c,d));
}
}

B10233070劉思涵 提到...

static public int GCD(int x, int y){
int r=x%y;
if(r==0) return y;
else return GCD(y,r);
}
static public int GCD(int a, int b, int c, int d){
return GCD(GCD(a,b),GCD(c,d));
}
public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(GCD(a,b,c,d));
}
}

劉思涵B10233070 提到...

static public int GCD(int x, int y){
int r=x%y;
if(r==0) return y;
else return GCD(y,r);
}
static public int GCD(int a, int b, int c, int d){
return GCD(GCD(a,b),GCD(c,d));
}
public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(GCD(a,b,c,d));
}
}

B10233064 莊英霆 提到...

package hello0603;

public class ex5 {
static public int GCD(int x,int y){
int r=x%y;
if(r==0) return y;
else return GCD (y,r);
}
static public int GCD(int a, int b, int c , int d){
return GCD (GCD(a,b),GCD(c,d));
}
public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(GCD(a,b,c,d));

}
}

B10233064 莊英霆 提到...

package hello0603;

public class ex5 {
static public int GCD(int x,int y){
int r=x%y;
if(r==0) return y;
else return GCD (y,r);
}
static public int GCD(int a, int b, int c , int d){
return GCD (GCD(a,b),GCD(c,d));
}
public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(GCD(a,b,c,d));

}
}

b10233065 提到...

package hello0603;

public class hello {

static public int GCD(int x, int y) {
int r=x%y;
if(r==0) return y;
else return GCD(y,r);
}
static public int GCD(int a, int b, int c, int d){
return GCD(GCD(a,b),GCD(c,d));
}

public static void main(String[] args) {
int a=33;
int b=66;
int c=99;
int d=96;
System.out.println(GCD(a,b,c,d));
}
}

B10233091許少威 提到...

public class ex1 {

static public int GCD(int x,int y){
int r=x%y;
if(r==0)return y;
else return GCD(y,r);

}
static public int GCD(int a,int b,int c,int d){

return GCD(GCD(a,b),GCD(c,d));

}



public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;

System.out.println("GCD="+GCD(a,b,c,d));
}
}

B10233092 提到...

public class ex1 {

static public int GCD(int x,int y){
int r=x%y;
if(r==0)return y;
else return GCD(y,r);

}
static public int GCD(int a,int b,int c,int d){

return GCD(GCD(a,b),GCD(c,d));

}



public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;

System.out.println("GCD="+GCD(a,b,c,d));
}
}

B10233073 楊博宇 提到...

package roger1231;

public class roger654123 {

static public int Gcd(int x,int y,int s,int m){
int r=x%y;
int z=s%m;
if(r==0)return y;
else if(z==0)return m;
else return Gcd(y,r,m,z);
}
public static void main(String[] args) {
System.out.println(Gcd(33,36,99,96));
}
}

B10233070劉思涵 提到...

package hello603;

public class Ex5 {
static public int Gcd(int x,int y){
int r=x%y;
if(r==0)return y;
else return Gcd(y,r);
}
static public int Gcd(int a,int b,int c,int d){
return Gcd(Gcd(a,b),Gcd(c,d));
}
public static void main(String[] args) {
int a=33;
int b=36;
int c=99;
int d=96;
System.out.println(Gcd(a,b,c,d));

}

}

B10233066張哲毓 提到...

package test;

public class test0610 {

static public int Gcd(int x,int y,int s,int m){
int r=x%y;
int z=s%m;
if(r==0)return y;
else if(z==0)return m;
else return Gcd(y,r,m,z);
}
public static void main(String[] args) {
System.out.println(Gcd(33,36,99,96));
}
}

B10233074 許逸憲 提到...

package sha111;

public class wwwe123 {

static public int Gcd(int x,int y,int s,int m){
int r=x%y;
int z=s%m;
if(r==0)return y;
else if(z==0)return m;
else return Gcd(y,r,m,z);
}
public static void main(String[] args) {
System.out.println(Gcd(33,36,99,96));
}
}

Related Posts Plugin for WordPress, Blogger...

熱門文章