Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int x, count = 0;
- cout << "vnesi broj: " << endl;
- cin >> x;
- for (int i = 1; i <= x; i++) {
- if (x % i == 0) {
- count++;
- }
- }
- if (count > 2) {
- cout << "brojot ne e prost" << endl;
- }
- else {
- cout << "borjot e pros";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement