Skip to content

Instantly share code, notes, and snippets.

@Khuzha
Last active February 29, 2020 17:34
Show Gist options
  • Save Khuzha/f30c3c2947ba49c8d8266a4d13b64ab1 to your computer and use it in GitHub Desktop.
Save Khuzha/f30c3c2947ba49c8d8266a4d13b64ab1 to your computer and use it in GitHub Desktop.
for Albina
package com.khuzha.objects;
public class Main {
public static void main(String[] args) {
int k = 2, l = 2, m = 4, n = 6;
if (l % k == 0 && m % k == 0 && n % k == 0) {
System.out.println("Все эти числа можно разделить на число k без остатка.");
} else {
System.out.println("Одно из этих чисел делится на число k с остатком");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment