这是我在洛谷刷的第42道题。

c
#include<stdio.h>
int main()
{
int n;
scanf("%d",&n);
if(n%3==0&&n%5==0)
printf("YES");
else
printf("NO");
return 0;
}

反思:
逻辑且。