Basic Pascal Tutorial/Chapter 2/Programming Assignment/zh CN: what changed
Revision 2 to 3. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | 2F - 编程作业 (原作者: Tao Yue, 状态: 未更改) | |
| 2 | 2 | ||
| 3 | 3 | 仍是5个数,求和、求平均数。但这次是输入5个数,并显示出来。 | |
| 4 | 4 | ||
| 5 | 5 | 如果需要参考源问题,你应该输入以空格分隔的数字:45 7 68 2 34。 | |
| 6 | 6 | ||
| 7 | 7 | 显示效果应该看起来是这个样子: | |
| 8 | 8 | ||
| 9 | - | ||
| 9 | + | ```text | |
| 10 | 10 | Number of integers = 5 | |
| 11 | 11 | ``` | |
| 12 | 12 | ||
| 13 | - | ||
| 13 | + | ```text | |
| 14 | 14 | Number1: 45 | |
| 15 | 15 | Number2: 7 | |
| 16 | 16 | Number3: 68 | |
| 17 | 17 | Number4: 2 | |
| 18 | 18 | Number5: 34 | |
| 19 | 19 | ================ | |
| 20 | 20 | Sum: 156 | |
| 21 | 21 | Average: 31.2 | |
| 22 | 22 | ``` | |
| 23 | 23 | ||
| 24 | 24 | 作为一个额外练习,你可以尝试将输出写入到文件中;不过,我不会在参考答案中说明。 | |
| 25 | 25 | ||
| 26 | 26 | | | | | | |
| 27 | 27 | |----|----|----| | |
| 28 | 28 | | [[Basic Pascal Tutorial/Chapter 2/EOLN and EOF/zh CN|上一页]] | [[Basic Pascal Tutorial/Contents/zh CN|目录]] | [[Basic Pascal Tutorial/Chapter 2/Solution/zh CN|下一页]] | | |
| 29 | 29 | ||
| 30 | 30 | --- | |
| 31 | 31 | *From the Free Pascal wiki, page "Basic Pascal Tutorial/Chapter 2/Programming Assignment/zh CN", as it stood on 2022-08-20 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* | |
| 32 | 32 | Category: zh |
