Skip to content

Instantly share code, notes, and snippets.

@FreeFly19
Forked from greensma/Ex5.java
Last active October 23, 2016 22:18
Show Gist options
  • Save FreeFly19/f6fd0c3eed73fb2c27e49e7d7c12b200 to your computer and use it in GitHub Desktop.
Save FreeFly19/f6fd0c3eed73fb2c27e49e7d7c12b200 to your computer and use it in GitHub Desktop.
Home work #2 Смаглюк Иван
public class Ex5 {
public static void main(String[] args) {
int n = 15;
int m = 3;
for (int i = 1; i <= n; i++) {
if (i % m == 0) {
System.out.print(i + " ");
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment