Question d’entretien chez CloudKaptan

write a java program to find the GCD of 3nos.

Réponses aux questions d'entretien

Utilisateur anonyme

24 nov. 2017

static int findgcd(int a,int b,int c) { int lim=(a

12

Utilisateur anonyme

24 nov. 2017

static int findgcd(int a,int b,int c) { int lim=(a

Utilisateur anonyme

24 nov. 2017

import java.util.*; import java.lang.*; import java.io.*; public class GCD { public static void main (String[] args) throws java.lang.Exception { Scanner scan=new Scanner(System.in); int a=scan.nextInt(),b=scan.nextInt(),c=scan.nextInt(); int gcd=findgcd(a,b,c); System.out.println("GCD: "+gcd); } static int findgcd(int a,int b,int c) { int lim=(a