- 1
Estoy empezando de nuevo y estoy perdido
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); //obtener los salarios int salary1 = scanner.nextInt(); int salary2 = scanner.nextInt(); //tu cĂłdigo va aquĂ int total = salary1 + salary2 ; System.out.println("total"); } }
2 Answers
+ 3
Cristian
I am assuming that you want the the result of the sum here:
just write -> total instead " total " .
0
Cristian Endara
Remember when you write anything inside double quotes that would be String but you need to print numeric value so just print total.