Program-1 // Add two numbers(User Defined)import java.util.*;class Add{public static void main(String args[]){Scanner sc=new Scanner(System.in);System.out.println(“Enter two numbers”); int a=sc.nextInt();int b=sc.nextInt();int c=a+b;System.out.println(c);}}