greatest common divisor
Example :
** greatest common divisor **
_______________________________________________
* solution :
import java.util.Scanner;
public class GCD {
public static void main (String [ ]args){
Scanner in = new Scanner (System.in);
int a = in.nextInt();
int b = in.nextInt();
System.out.println(" shosmo equals "+ gcdivisor(a,b));
public class GCD {
public static void main (String [ ]args){
Scanner in = new Scanner (System.in);
int a = in.nextInt();
int b = in.nextInt();
System.out.println(" shosmo equals "+ gcdivisor(a,b));
0 التعليقات: