Skip to content

Instantly share code, notes, and snippets.

@FreeFly19
Forked from makaliuk/1
Last active October 23, 2016 22:12
Show Gist options
  • Save FreeFly19/d4fd36208febb3d4a7cd2b6f778070b1 to your computer and use it in GitHub Desktop.
Save FreeFly19/d4fd36208febb3d4a7cd2b6f778070b1 to your computer and use it in GitHub Desktop.
Makaliuk Maxim 1
сложн ( ̄ー ̄)
package com.company;
public class Main {
public static void main(String[] args) {
int i = 1;
while (i < 7) {
System.out.println("I will adopt best practices");
i++;
}
}
}
package com.company;
public class Main {
public static void main(String args[]){
for (int i = 0; i <= 10; i = i + 2) {
System.out.print(i + " ");
}
}
}
package com.company;
public class Main {
public static void main(String args[]){
for (int i = 0; i <= 20; i = i + 2) {
System.out.print(i + " ");
}
}
}
package com.company;
public class Main {
public static void main(String args[]) {
int count = 15;
for (int i = 1; i <= count; i++) {
if (i % 3 == 0) {
System.out.print(i + " ");
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment