How do I do that?
Type: Posts; User: Melawe
How do I do that?
It worked!!! :D Thanks everyone!!!! :D
Okay thanks!
Okay thanks, um what IDE would you recommend? I was using Netbeans but the last few updates came with a few Trojans and other Spyware. :/
Yea thats true, so the code should look like this at the end?
System.out.println("The square root of 300 plus the square root of 146 is ");
double z =(x^1/2 + y^1/2 );
...
anyone got a clue whats wrong with it?
It did it! :D
System.out.println("The square root of 300 plus the square root of 146 is ");
double z =Math.sqrt(x + y);
System.out.print(z);
run:
The squate root of...
Here is the what I get when Netbeans compiles it:
run:
The squate root of 300 is 17.320508075688775
The square root of 146 is 12.083045973594572
The square root of 300 + 146 is
0BUILD...
Sorry there was a mistake in the code
System.out.println("The square root of 300 plus the square root of 146 is ");
double z = x + y;
System.out.print(z);
I am trying to...
I tried this
System.out.println("The square root of 300 + 146 is ");
double z = x + y;
System.out.print(z);
and this
System.out.println("The square root of 300 + 146 is...
I think so I got what you mean I will try it asap.
Thanks
-Melawe
Here is an online text book version InformIT: Sams Teach Yourself Java 2 in 24 Hours > Activities
It is the 4th edition thou i am using the 6th.
Hi every one! :D
I just got a book about a week ago on Java, and its going great! I just can't find how to add an x integer squared and a y integer squared. Here is the code i currently have :
...