题目
(1) 写出求满足1×3×5×7×…×n>50000的最小正整数n的算法并画出相应的程序框图
(2)编写程序,使得任意输入的3个整数按从大到小的顺序输出
(2)编写程序,使得任意输入的3个整数按从大到小的顺序输出
提问时间:2021-12-12
答案
(1)
s=1
n=1
Do
s=s*i
n=n+2
while s>50000
print n
(2)
input a,b,c
If a < b Then
i = a
a = b
b = i
End If
If a < c Then
i = a
a = c
c = i
End If
If b < c Then
i = b
b = c
c = i
End If
Print a,b,c
s=1
n=1
Do
s=s*i
n=n+2
while s>50000
print n
(2)
input a,b,c
If a < b Then
i = a
a = b
b = i
End If
If a < c Then
i = a
a = c
c = i
End If
If b < c Then
i = b
b = c
c = i
End If
Print a,b,c
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
最新试题
- 1我能为你效劳吗?是的 不,
- 2The time passed quikly. before we know it,it was time to say goodbye.
- 3八年级下钟书课课练几何题目
- 4孔融让梨的文言文 =
- 5一个盒子有四红球两白球,不放回先后摸球,直到两个白球都出现,求摸球四次完成的概率.
- 6一毫米等于多少条
- 7they include selected combinations of text layouts with features such as title placements and sizes
- 8第22课 在沙漠中心 分段
- 9your room is a ( ).sorry.I"ll clear it up at once.
- 102/31*79^2-2/31*76^2-9又6/7×10又1/7
热门考点
- 1Whose stamps are these?.与它意思相符的句子
- 2若m和n是不为零的互为相反数,x和y互为倒数,c的绝对值是2,求(xy-m/n)^5+(c^4/n/m)-(x/y)^2004的值+解释
- 3从冰箱里取出一瓶啤酒会产生气泡,请从平衡移动原理解释
- 4把若干个自然数,例如1,2,3,4等等,乘到一起,如果已知这个乘积的最末13位恰好都是0,那么最后出现的自然数最小应是几?
- 5新概念第三课clorkroom音标
- 6一个五边形加一笔怎么变成两个三角形,不能是粗线
- 7函数y=ax^2+bx+c,若a>0,b
- 8I went to a library yesterday
- 9算相遇时间时,时间是指几时还是几分
- 10三国演义好句摘抄