Computer Science, asked by harshkhaitan04pbkxbx, 1 year ago

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.
harshkhaitan04pbkxbx: ok you can do it with buffered reader
harshkhaitan04pbkxbx: sorry you can do it without using buffered reader

Answers

Answered by nitish8089
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);
}
}
Similar questions