3和5和7
3和5和7
http://www.nowcoder.com/questionTerminal/174c84b0b71b494985a0069ee5285984
include<stdio.h>
int main()
{int n,i,t;
scanf("%d",&n);
for(i=1;i<=n;i++)
{t=i;
if(t%3==2&&t%5==3&&t%7==2)
{printf("%d\n",i);}}}
3和5和7
http://www.nowcoder.com/questionTerminal/174c84b0b71b494985a0069ee5285984
int main()
{int n,i,t;
scanf("%d",&n);
for(i=1;i<=n;i++)
{t=i;
if(t%3==2&&t%5==3&&t%7==2)
{printf("%d\n",i);}}}
相关推荐