package workshop.tag5;

public class Gruppe8 {

    public static void main(String[] args) {
        for (int i = 1; i <= 200; i++) {
            if (i % 5 == 0) {
                System.out.println(i + " ist durch 5 teilbar!");
            }
            if (i % 10 == 9) {
                System.out.println(i + " endet auf 9!");
            }

            int result = i + i - 1;
            if (result % 3 == 0) {
                System.out.println(i + " und " + (i - 1) + " ergeben " + result + " und " +
                        result + " ist durch 3 teilbar!"); //alternative Variante mit printf um Konkatenation zu vermeiden


                // System.out.printf("%d und %d ergeben %d und %d ist durch 3 teilbar!\n", i, (i - 1), result, result);
            }
        }
    }

}
