import java.io.*;
class Addition
{
public static void main(String arg[])throws IOException
{
int a,b,c;
InputStreamReader ir=new InputStreamReader(System.in);
BufferedReader br= new BufferedReader(ir);
System.out.println("Enter the two numbers to add:");
a=Integer.parseInt(br.readLine());
b=Integer.parseInt(br.readLine());
c = a*b;
System.out.println("\nSum of two numbers:" +c);
}
}
Output:
Enter the two numbers to Multiply:
2
3
Sum of two numbers:6
No comments:
Post a Comment