Skip to content

Latest commit

 

History

History
24 lines (23 loc) · 576 Bytes

README.md

File metadata and controls

24 lines (23 loc) · 576 Bytes

hello-world

https://github.com/venkatasykam/hello-world https://github.com/venkatasykam/JarProjects import java.util.Scanner;

class AddNumbers { public int substarction(int a, int b){ return a-b; } //Main Add Method public static void main(String args[]) { int x, y, z; System.out.println("Enter two integers to calculate their sum "); Scanner in = new Scanner(System.in); x = in.nextInt(); y = in.nextInt(); z = x + y; System.out.println("Sum of entered integers = "+z); } } //AddNumbers Class //New comment