import java.util.Scanner;
class addwithScan
{
public static void main(String args[])
{
Scanner scan=new Scanner(System.in);
System.out.println("enter your name");
String name=scan.nextLine();
System.out.println("Enter first value");
int num1=scan.nextInt();
System.out.println("enter Second value");
int num2=scan.nextInt();
int result=num1+num2;
System.out.println("Welcome here Mr. "+name);
System.out.println("The result is "+result);
}
}
Link for addition program using java.io.* package classes
• Addition Program using user input values|A...
On this page of the site you can watch the video online Java Code using Scanner Class| addition program using Scanner Class| use of java.util.Scanner with a duration of hours minute second in good quality, which was uploaded by the user Praveen Srivastava 12 August 2021, share the link with friends and acquaintances, this video has already been watched 248 times on youtube and it was liked by 15 viewers. Enjoy your viewing!