count how many numbers?java count question
问题描述:
count how many numbers?java count question
这道题怎么写 write a program that declares and creates an array of 9 integers containin the following values :{ 1.-2,16,40,15,26,47,18,-9} .then,the program should ,using a loop ,count how many numbers are greater then 20 .finally ,the program should print out as output this count value
答
声明和创建containin以下值:9整数数组.1. - 2,16,40,15,26,47,18,-9},然后写一个程序,程序应该使用一个循环,计数多少20.最后,该计划应作为输出打印此计数值吗?