eolymp
bolt
Try our new interface for solving problems
Problems

Divisibility by numbers

published at 1/5/24, 11:11:14 pm

include <iostream>

using namespace std; int main() { int a,b,c,n; cin>>n>>a>>b; if(n%a==0 && n%b==0){ cout<<"YES"; } else{ cout<<"NO"; } }