数组中的最大值。 [英] max value in an array.

查看:80
本文介绍了数组中的最大值。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法让我的最大值代码起作用。

它所做的只是输出输入的最后一个值,而不是最大值。

i cannot get my max value code to work.
all it does is prints out the last value entered, not the max value.

展开 | 选择 | < span class =codeLinkonclick =WordWrap(this);> Wrap | 行号

推荐答案


i无法使我的最大值代码生效。

所做的就是打印输入的最后一个值,而不是最大值。

i cannot get my max value code to work.
all it does is prints out the last value entered, not the max value.

展开 | 选择 | Wrap | 行号


shit。谢谢你。


有趣的是,如此小的东西,可以让你坚持这么久。
shit. thanks for that.

funny how something so small, can drive you nuts for so long.


如果它们是负数,那么,


它将打印出零。


和我的最小值。


它只会找到最小负数。


为什么会这样。
if they are negative numbers though,

it will print out zero.

and for my min value.

it will only find min of negative numbers.

why is that.


这篇关于数组中的最大值。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆