Задача "Sum Big Numbers in Range" - Tech Fundamentals
Здравейте,
опитвам да реша задачата https://pastebin.com/jyMTbzuu, но не се сещам как да оправя грешката.
Може ли някой да прати правилното решение? Благодаря!
Условиe:
You are assigned to find and fix the bugs in an existing piece of code, using the debugger. You should trace the program execution to find the lines of code that produce incorrect or unexpected results.
You are given a program (existing source code) that aims to sum big numbers. You will be given two numbers – start and end number, you should sum all numbers between the two numbers.
Examples
Input |
Output |
Comments |
1 5 |
15 |
1 + 2 + 3 + 4 + 5 |
5 10 |
45 |
5 + 6 + 7 + 8 + 9 + 10 |
SumBigNumbers.java |
public static void main(String[] args) {
|
Благодаря!