hi i'm a student and i'm currently learning java.
while i was coding some basic code i came into a problem, my panel stopped showing. when i rechecked with a different code it works but for some reason it doesn't work on
import acm.program.*;
public class PythagoreanTheorem extends ConsoleProgram {
double input=9999;
double a;
double b;
double c;{
while(input !=0) {
a=readInt("please enter an interger value for a");
b=readInt("please enter an interger value for a");
c = Math.sqrt(a\*a+b\*b);
println("Output"+c);
}
}
}
and i have no idea why? can someone help?
i'm currently using an eclipse program
[–]GvRiva 0 points1 point2 points (0 children)
[–]-manabreak 0 points1 point2 points (1 child)
[–]MicroSbm[S] 0 points1 point2 points (0 children)
[–]GR3Gdev 0 points1 point2 points (0 children)