import java.util.Scanner; public class javaBasics { public static void main(String args[]) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int sum = a + b; System.out.println(sum); } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter