How do I get these values out of an int array in java

前端 未结 0 837
抹茶落季
抹茶落季 2020-11-22 05:41

I have an int array with 20 random ints in Java and want to get these five values out of it.

1.Sum of all numbers in the array.

2.Sum of all even numbers in th

相关标签:
回答
  • 消灭零回复
提交回复
热议问题