powerbuilder输出1-100之间能被7整除的数 怎么写

学习 时间:2026-05-30 15:24:36 阅读:6199
powerbuilder输出1-100之间能被7整除的数 怎么写输出结果显示在一个文本框里

最佳回答

高高的钢笔

魔幻的含羞草

2026-05-30 15:24:36

integer ifor i = 1 to 100if mod(i,7) = 0 thenst_1。text = st_1。text + string(i) + ','end ifnext没有调试过,大概思路就是分别求(1~100)/7的余数,余数为0,说明能被7整除。

最新回答共有2条回答

  • 细腻的店员
    回复
    2026-05-30 15:24:36

    integer ifor i = 1 to 100if mod(i,7) = 0 thenst_1。text = st_1。text + string(i) + ','end ifnext没有调试过,大概思路就是分别求(1~100)/7的余数,余数为0,说明能被7整除。

上一篇 VB求词语解释end 和unload me 的区别

下一篇 要150字左右的感谢师恩的文章,急~~~~~~~~~~~