Please solve the question 3 using buffered reader ..its urgent
Attachments:
nitish8089:
please can you describe why you want to use buffer reader i am not getting for this question.
Answers
Answered by
0
public class Program
{
static void choose(int x){
System.out.println("cube of the integer "+x+" is"+(x*x*x));
}
static void choose(double x){
System.out.println("square of the fraction "+ x+" is"+(x*x));
}
public static void main(String[] args) {
int a=33;
double b=12.5;
Program.choose(a);
Program.choose(b);
}
}
{
static void choose(int x){
System.out.println("cube of the integer "+x+" is"+(x*x*x));
}
static void choose(double x){
System.out.println("square of the fraction "+ x+" is"+(x*x));
}
public static void main(String[] args) {
int a=33;
double b=12.5;
Program.choose(a);
Program.choose(b);
}
}
Similar questions