当前位置: > 输入两个正整数m和n(m≥1,n≤500),输出m和n之间的所有素数,每行输出6个,...
题目
输入两个正整数m和n(m≥1,n≤500),输出m和n之间的所有素数,每行输出6个,
每个正整数按%4d格式输出
#include
#include
int main(void)
{
x05int count,i,x,y,m,n;
x05count=0;
x05printf("Input m:");
x05scanf("%d",&m);
x05printf("Input n:");
x05scanf("%d",&n);
x05if(m>1)
x05for(x=m;x

提问时间:2020-10-28

答案
#include#includeint main(void){int count,i,x,y,m,n;count=0;printf("Input m: ");scanf("%d",&m);printf("Input n: ");scanf("%d",&n);if(m>n)//m,n如果不是m小的话,换一下{i=m;m=n;n=i;}//if(m>1)//这个不用判断...
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.