当前位置:网站首页>7.8(6)
7.8(6)
2022-08-03 05:11:00 【tt142】
今天只是看了几个关于分支循环的小题,效率奇低,主要是心情很差,境界不高不能真正两耳不闻窗外事
会打印闰年,素数,公约数,倍数,从大到小打印数字
int main()
{
int a = 0;
for(a=100;a<=200;a++)
{
int j = 0;
for(j=2,j<=sqrt(a);j+=2)
{
if(a%j == 0)
{
break;
}
}
if(j > sqrt(a))
{
printf("%d ",a)
}
}
return 0;
}
边栏推荐
猜你喜欢
随机推荐
建造者模式(Builder Pattern)
HarmonyOS应用开发第一次培训
【转】最小描述长度准则MDL(Minimun Description Length)
2022暑假牛客多校联赛第一场
0.ROS常用命令
2.ROS通信机制
-飞机大战-
typescript49-交叉类型
1060 爱丁顿数 (25 分)
OptionError: ‘Pattern matched multiple keys‘
-角谷猜想-
CAD有生僻字如何打出来、如何提交软件相关问题或建议?
1079 延迟的回文数 (20 分)
Business table analysis - balance system
Apache DolphinScheduler版本2.0.5分布式集群的安装
HarmonyOS应用开发培训第二次作业
typescript47-函数之间的类型兼容性
Common fluorescent dyes to modify a variety of groups and its excitation and emission wavelength data in the data
Djiango第三次培训
Power button 561. An array of split









