Addition Program using user input values|Addition Program in JAVA| input values from user in java

Published: 11 August 2021
on channel: Praveen Srivastava
203
19

import java.io.*;
class addUserInput
{
public static void main(String arg[])throws IOException
{
InputStreamReader ism=new InputStreamReader(System.in);
BufferedReader br=new BufferedReader(ism);
System.out.println("Enter your name");
String name=br.readLine();
System.out.println("Enter first value");
int num1=Integer.parseInt(br.readLine());
System.out.println("Enter second value");
int num2=Integer.parseInt(br.readLine());
int result=num1+num2;
System.out.println("Welcome here Mr. "+name);
System.out.println("The result is "+result);
}
}


On this page of the site you can watch the video online Addition Program using user input values|Addition Program in JAVA| input values from user in java with a duration of hours minute second in good quality, which was uploaded by the user Praveen Srivastava 11 August 2021, share the link with friends and acquaintances, this video has already been watched 203 times on youtube and it was liked by 19 viewers. Enjoy your viewing!