#include
void main ()
{int a;
scanf ("请输入一个正整数%d\n",&a);
if (a<=0)
printf ("输入有误");
else if (a%5=0&&a%7=0)
printf("yes\n");
else printf("no\n");
}
#include
int main()
{
int i;
cin>>i;
if(i%5==0&&i%7==0)
{
cout<<"yes"<
cout<<"no"<
}
#include "stdio.h"
#include "conio.h"
main()
{
int num;
scanf("%d",&num);
if(num%35 == 0)
printf("yes\n");
else
printf("no\n");
getch();
}
dev c++编写。
#include
int main(void)
{
int b;
scanf("%d",&b);
if (b<=0)
return 0;
printf("%s\n",(b%35?"no":"yes"));
return 0;
}