0

Please help fix this

Please help fix this code. It must sum up any two numbers of type double, which the user writes in a space https://code.sololearn.com/cp8qN3yMAC19/#java import java.util.Scanner; class MyClass { public static void main(String[ ] args) { for (int i = 0; i < array.length; i++){ variable += array[i]; Scanner F = new Scanner(System.in); double s += F; } System.out.printl(s); } } !

23rd Apr 2018, 4:48 PM
Руслан Соколов
Руслан Соколов - avatar
2 Answers
0
F is not a variable. you cant add it
23rd Apr 2018, 4:52 PM
sajede mirzaei
sajede mirzaei - avatar
0
F its not the one dont declared... "array" and "variable" also
23rd Apr 2018, 4:54 PM
KrOW
KrOW - avatar