-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgcd.java
More file actions
31 lines (29 loc) · 711 Bytes
/
gcd.java
File metadata and controls
31 lines (29 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import java.util.*;
public class gcd {
public static void main(String args[]){
Scanner sc=new Scanner(System.in);
int D=sc.nextInt();
int d=sc.nextInt();
for(){
}
}
}
/*
import java.util.Scanner;
public class hcf{
public static void main(String args[]){
Scanner sc=new Scanner(System.in);
System.out.println("Enter first number : ");
int f=sc.nextInt();
System.out.println("Enter second number : ");
int s=sc.nextInt();
int c=f<s?f:s;
for(int x=c;x>=1;x--){
if(f%x==0 && s%x==0){
System.out.println(x);
break;
}
}
}
}
*/