使用“for”批处理文件编程中的循环显示前N个自然数
我想主要了解 for
循环的工作原理。为此,我认为一个小示例程序会对我有所帮助。那么显示前N个自然数的简单程序是什么呢?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我想主要了解 for
循环的工作原理。为此,我认为一个小示例程序会对我有所帮助。那么显示前N个自然数的简单程序是什么呢?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
如果您在这里谈论 Windows 批处理编程,那么您有一个自然数生成器:
处理文件等的其他有用链接:
如果您正在谈论 GNU Linux/Unix bash 脚本,您可以访问:
希望有帮助,
If you are talking about Windows batch programming here you have a natural numbers generator:
Other helpful links to deal with files and so on:
If you are talking about GNU Linux/Unix bash scripting you can go to:
Hope that helps,