0
Whats wrong in this Code?
public class Main{ public static void main(String[]args){ System.out.println("Number"); Â Â Â int num1 = 1; Â Â Â int num2 = 2; Â Â Â int num3 = 3; Â Â Â Ans = num1 + num2 + num3; Â Â Â System.out.println(Ans); } }
2 Answers
+ 1
Define the type of Ans. Add int before the variable name.
+ 2
Thank you



