Sum of all integers in an interval - Java

前端 未结 0 1077
孤街浪徒
孤街浪徒 2020-12-07 05:56

I am trying to create a method that returns the sum of all the numbers in an interval between two integers. If x is negative or y < x, the method should return -1. But I

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