输入两个正整数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
每个正整数按%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
其他人气:348 ℃时间:2019-10-17 14:16:39
优质解答
#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跳伞运动员在1000米的高空离开飞机匀速下降【科学问题】
- 2原电池和电解池的总反应式是化学方程式还是离子方程式
- 3王师傅和李师傅各锯一根同样长的木料,王师傅把木料平均锯成9段,刘师傅把木料平均锯成十段,刘师(见下)
- 4过双曲线的中心作直线交双曲线于A,B两点,P是双曲线上任意两点,求证:直线PA,PB的斜率乘积是定值
- 5下列符号中2的含义
- 6描写声音的比喻句怎么回事啊?
- 7Let's go to the cinema.改为同意疑问句是Let's go to the cinema,( ).
- 8when we stretch to serve another,we grow to live in a more rewarding world.
- 9把一根长2.5米的长方体木料锯成两段后,表面积增加了80平方厘米,它的体积是( )
- 10同学们参加运动会入场式,排成一个方阵,最外层一周的人数为24人,问方阵最外层每边人数是多少?这个方阵共有多少人?