Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- int a, b, c;
- cin >> a >> b >> c;
- int proizvod = a * b * c;
- int deliteli = 0;
- for(int i = 1; i <= proizvod; i++) {
- if(proizvod % i == 0) {
- deliteli++;
- }
- }
- if(deliteli == 2) {
- cout << "prost" << endl;
- }
- else {
- cout << "slozhen" << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement