Find the code errors | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Find the code errors

import java.util.Scanner; class Addnum { public static void main (String args[]) { int x,y,z; System.out.println("Enter your two numbers for sum:"); Scanner in= new Scanner(System.in); x= in.nextlnt(); y= in.nextlnt(); z=x+y; System.out.println("Sum of your number is :"+z); } }

27th Mar 2018, 6:24 AM
Shamsulhaq Alkozay
Shamsulhaq Alkozay - avatar
1 Answer
+ 2
you are right thanks
27th Mar 2018, 6:48 AM
Shamsulhaq Alkozay
Shamsulhaq Alkozay - avatar