|
-
Oct 18th, 2010, 04:56 PM
#1
Thread Starter
New Member
Square/cube root
How do I allow a user to input a number and then make them select the number 1 to cube or number 2 to square it and produce the result? I don't want to use the math function but rather something like this to square it:
result = var * 2;
System.out.println(result);
Any help in starting would be appreciated
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|