package javaapplication17;
import java.io.*;
public class JavaApplication17 {
public static void
main(String[] argv) throws Exception
{
System.out.print("Enter your name: ");
InputStreamReader
in = new InputStreamReader(System.in);
BufferedReader br
= new BufferedReader(in);
String name =
br.readLine();
System.out.println("Hello, " + name+" enter a value and b
value");
int a,b;
a=Integer.parseInt(br.readLine());
b=Integer.parseInt(br.readLine());
System.out.println("
sum of two given number"+(a+b));
}
}
No comments:
Post a Comment