Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created September 20, 2019 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/a63ed6f0162182e825b5fb13d8fef1fd to your computer and use it in GitHub Desktop.
Save parzibyte/a63ed6f0162182e825b5fb13d8fef1fd to your computer and use it in GitHub Desktop.
/*
Número divisible en Java
https://parzibyte.me/blog
*/
class Main {
public static void main(String[] args) {
for (int x = 1; x < 20; x++) {
for (int y = 1; y < 5; y++) {
System.out.printf("%d %% %d = %d\n", x, y, x % y);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment