# Search:

Type: Posts; User: haibhailie

## Search: Search took 0.22 seconds.

by haibhailie
Replies
28
Views
1,078

yeah just ditch tht problem, i got it ;)

now im doing the second one
how do you put 3 functions in one program??

by haibhailie
Replies
28
Views
1,078

and wht are highlinght tags????

by haibhailie
Replies
28
Views
1,078

I am now doing the 3rd question...
my script till now is:
class ProfitAndLoss
{
public static void findResult(int sp,int cp);
{
if (sp>cp);
{
...

by haibhailie
Replies
28
Views
1,078

my final script, finally compiled and worked ^^ tysm kevin workman!!!!

by haibhailie
Replies
28
Views
1,078

i got a script:

class Triangle
{
public static void findArea(int a,int b, int c)
{
if (a+b>c);
{
double x=a*b*c/2;
...

by haibhailie
Replies
28
Views
1,078

ok, yh i didnt quite get it lol...

my program:
class Triangle
{
public static void findArea(int a,int b, int c)
{
if a+b>c,a+c>b,b+c>a
{
...

by haibhailie
Replies
28
Views
1,078

omg...ty sooo much!!!! i got it!!!!! :D yay!!!

by haibhailie
Replies
28
Views
1,078

i havent actually learnt that if statement and boolean literal, thats wht i need help in.

by haibhailie
Replies
28
Views
1,078

when two sides are greater than the other, a triangle can be formed. when they are not, it cannot.

by haibhailie
Replies
28
Views
1,078

when a+b<c
b+c<a and a+c<b, triangle cannot be formed.

but if instead of these, we use:a+b>c
b+c>a and a+c>b
ittl work.

by haibhailie
Replies
28
Views
1,078

uhm, maybe just putting in the required things needed, and if it meets up, just give the area, and if it doesnt, say triangle cannot be formed....not quite get wht u mean though...

by haibhailie
Replies
28
Views
1,078

i did the class triangle but am not getting the boolean part of it. I have got the part where find the area, but have not got where it tells us to say "triangle cannot be formed".
My script until...

by haibhailie
Replies
28
Views
1,078

thank you,
i hadent seen that. :D
14. ## Thread: Taking a square root in Java, answer appears as 0.0. Why?

by haibhailie
Replies
7
Views
2,059

### [SOLVED] Re: Taking a square root in Java, answer appears as 0.0. Why?

you can try :

class SquareRoot
{
public static void findSqrt(double n)
{
double a=Math.sqrt(n);
System.out.print("Square Root="+a);
}
...

by haibhailie
Replies
28
Views
1,078

i do only small projects without the args etc.
only like
public static void diplay findResult(int n,int x)
{
/then like/ double a,b,c;
/and then just...

by haibhailie
Replies
28
Views
1,078

Well, im not getting stuck...lol
i dont know how to do them for i was absent when the explanation was going on sir.