package page_114;
public class HomeWork3 {
public static void main(String[] args) {
int i = 0;
int num = 0;
do {
num++;
if (num % 7 == 0) {
i += num;
System.out.println(num);
}
} while (num < 50);
System.out.println(i);
}
}
public class HomeWork3 {
public static void main(String[] args) {
int i = 0;
int num = 0;
do {
num++;
if (num % 7 == 0) {
i += num;
System.out.println(num);
}
} while (num < 50);
System.out.println(i);
}
}