Advertisement
Guest User

Untitled

a guest
Nov 16th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. int x, count = 0;
  7. cout << "vnesi broj: " << endl;
  8. cin >> x;
  9. for (int i = 1; i <= x; i++) {
  10. if (x % i == 0) {
  11. count++;
  12. }
  13. }
  14. if (count > 2) {
  15. cout << "brojot ne e prost" << endl;
  16.  
  17. }
  18. else {
  19. cout << "borjot e pros";
  20. }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement