Untitled

public
yousefkarem91 Sep 18, 2024 Never 50
Clone
C++ paste1.cpp 11 lines (11 loc) | 288 Bytes
1
#include <bits/stdc++.h>
2
using namespace std;
3
int main() {
4
int n;cin>>n;
5
//444, 447, 474, 477, 744, 747, 774, 777
6
if(n%4==0||n%7==0||n%47==0||n%447==0||n%444==0||n%474==0||n%477==0||n%747==0||n%774==0||n%777==0) {
7
cout<<"YES\n";
8
}
9
else
10
cout<<"NO\n";
11
}