fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. cin >> n;
  7. if (n % n == 0 and n % 1 == 0 ){
  8. cout << "yes";
  9. } else {
  10. cout << "no";
  11. }
  12. return 0;
  13. }
Success #stdin #stdout 0s 5300KB
stdin
7
stdout
yes