您如何使用循环填充数组并在简单伪代码中搜索特定值
您如何编写伪代码来声明和填充具有10个元素的数组。我需要使用一个循环填充数组并搜索数组以获取值20。如果找到值,请显示一条消息,显示一个在找到值的下标。可能有多个发生 价值。如果找不到该值,请显示适当的消息。
How do you write the pseudocode to declare and populate an array with 10 elements. I need to use a loop to populate the array and search the array for the value 20. If the value is found, display a message that shows the subscript where the value is found. There may be more than one occurrence
of the value. If the value is not found, then display an appropriate message.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)