Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int broj = 15, parni = 0, neparni = 0;
- while (broj<100)
- {
- if (broj % 2 == 0)parni++;
- else neparni++;
- broj++;
- }
- cout << "parni brojevi: " << parni << endl;
- cout << "neparni brojevi: " << neparni << endl;
- system("pause > nul");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment