Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- // необходимо вывести все нечетные числа в диапазоне от 0 до 25
- int main() {
- setlocale(LC_ALL, "ru");
- for (int i = 0; i <= 25; i++) {
- if (i % 2 == 0) {
- continue; // переход на следующую итерацию
- }
- cout << i << " ";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment