100-200素数
#include<stdio.h>
#include<math.h>
int main()
{
int m,a,b;
for(m=100;m<=200;m++)
{
for(a=2;a<=sqrt(m);a++)
{
if(m%a==0)
{break;}
}
if(sqrt(m)<a)
{printf("%d\n",m);}
}
return 0;
}
===========================================================================
continue正数个数
#include<stdio.h>
int main()
{
int a,b,c=0;
for(a=1;a<=10;a++)
{
scanf("%d",&b);
if(b<=0)
{continue;}
c++;
}
printf("%d",c);
return 0;
}
#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=
本文来自博客园,作者:凡是过去,皆为序曲,转载请注明原文链接:https://www.cnblogs.com/longhai3/p/15887202.html
如有疑问,欢迎提问
#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=