Thursday, 21 June 2012

read values from keyboard


read values from keyboard



java.io.*;
class mul
{
int a;
int b;
int c;
mul()throws IOException
{
BufferedReader br= new BufferedReader(new InputStreamReader(System.in));

a=Integer.parseInt(br.readLine());
b=Integer.parseInt(br.readLine());
}
int result()
{
int c =a*b;
return c;
}

}


class vol
{
public static void main(String args[]) throws IOException
{
mul ob=new mul();
int d=ob.result();
System.out.println(d);


}
}

No comments:

Post a Comment