lv4 rjesen

This commit is contained in:
student 2025-10-17 09:49:37 +02:00
parent 0a94935153
commit 5647ab0fd6
7 changed files with 155 additions and 0 deletions

12
lv4/2a.cpp Normal file
View file

@ -0,0 +1,12 @@
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 1; i < n; i++) {
if ((i % 7 == 0) || (i % 5 == 0)) {
cout << i << " ";
}
}
}