Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int pocetok = 1;
- int kraj = 100;
- while (pocetok <= kraj) {
- cout << pocetok << endl;
- pocetok += 2;
- }
- // 1 3 5 7 9 ...
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment