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); } } !
2 Answers
0
F is not a variable. you cant add it
0
F its not the one dont declared... "array" and "variable" also