确定并打印99元素浮点数组中包含的最小值和最大值。使用notepad ++,它不会给出任何错误。如果出现问题,它就不会显示任何内容。这就是我所拥有的,但显然不对。有什么建议吗?
var w = new Array ( 99 );
parseFloat (smallest) = 0;
parseFloat (largest) = 0;
for ( int i = 0; i , 99; ++i )
{
if w[i] < smallest
smallest = w[i];
if w[i] > largest
largest = w[i];
}
document.writeln( "The smallest number is: " + smallest);
document.writeln( "The largest number is: " + largest);