Java
xxxxxxxxxx
public class GCD {
public static void main(String[] args) {
int n1 = 366, n2 = 60;
int hcf = hcf(n1, n2);
System.out.printf("G.C.D of %d and %d is %d.", n1, n2, hcf);
}
public static int hcf(int n1, int n2)
{
if (n2 != 0)
return hcf(n2, n1 % n2);
else
return n1;
}
}
JavaScript - 문자열이 특정 문자로 시작하고 끝나는지 확인
Python - 숫자가 양수, 음수 또는 0인지 확인
Linux - anc-api-tools 를 설치하는 방법
Java - 숫자 뒤집기
Linux - curvedns 를 설치하는 방법
C - 정수의 자릿수 계산
C - 동적 메모리 할당을 사용하여 가장 큰 수 찾기
Python - I/O 채팅 매우 쉬운 채팅
JavaScript - 문자열의 모음 수 세기
Kotlin - 숫자의 거듭제곱 계산
C++ - 이진수를 10진수로 또는 그 반대로 변환
Kotlin - 숫자의 계승 구하기
Python - 값으로 사전을 어떻게 정렬합니까?
Linux - zlib1g-dev 를 설치하는 방법
C++ - 숫자가 소수인지 여부 확인
Kotlin - 자연수의 합 계산
GoLang - 여러 줄 문자열을 작성하는 방법
JavaScript - 자연수의 합 구하기
We have been online since 2021 and 1 millions of people around the globe have visited our website since then
More visitors every month