从1到49按七七四九的方格排列,使横向输向纵向各和都为175
答案:2 悬赏:80 手机版
解决时间 2021-01-27 00:07
- 提问者网友:绫月
- 2021-01-25 23:36
从1到49按七七四九的方格排列,使横向输向纵向各和都为175
最佳答案
- 五星知识达人网友:愁杀梦里人
- 2021-01-26 00:15
30 39 48 1 10 19 28
38 47 7 9 18 27 29
46 6 8 17 26 35 37
5 14 16 25 34 36 45
13 15 24 33 42 44 4
21 23 32 41 43 3 12
22 31 40 49 2 11 20
38 47 7 9 18 27 29
46 6 8 17 26 35 37
5 14 16 25 34 36 45
13 15 24 33 42 44 4
21 23 32 41 43 3 12
22 31 40 49 2 11 20
全部回答
- 1楼网友:神鬼未生
- 2021-01-26 00:47
用vb代码: dim a(7, 7) as integer dim i as integer dim j as integer dim n as integer i = 1 j = (7 + 1) / 2 for n = 1 to 49 a(i, j) = n if int(n / 7) < n / 7 then j = j - 1 i = i - 1 else i = i + 1 end if if i = 0 then i = 7 if j = 0 then j = 7 next n for i = 1 to 7 for j = 1 to 7 print a(i, j); " "; if int(a(i, j) / 10) = 0 then print " "; next j print next i
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯