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

学习 时间:2026-04-08 23:49:45 阅读:7978
powerbuilder输出1-100之间能被7整除的数 怎么写输出结果显示在一个文本框里

最佳回答

生动的鲜花

刻苦的航空

2026-04-08 23:49:45

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-04-08 23:49:45

    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字左右的感谢师恩的文章,急~~~~~~~~~~~