Advertise Here

Author Topic: Cube .. number Ect  (Read 8940 times)

0 Members and 1 Guest are viewing this topic.

Offline zilchuary

  • SMF For Free Newbie
  • *
  • Posts: 16
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Cube .. number Ect
« on: January 04, 2008, 01:31:14 pm »
Code: [Select]
import java.util.Scanner;
import java.io.*;

public class Square
{
   public static float number;
   
   public static void main(String args[])
   {
      Scanner scan = new Scanner(System.in);
      BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      System.out.print("Number = ");   
      number = Float.parseFloat(scan.nextLine());
      for(int i = 0; i <= 10; i++)
      {
         System.out.println(number + "^2 = " + java.lang.Math.pow(number,2));
      }   
   }
}

Code: [Select]
import java.util.Scanner;
import java.io.*;

public class SquareRoot
{
public static float number;

public static void main(String args[])
{
Scanner scan = new Scanner(System.in);
System.out.print("Number = ");
number = Float.parseFloat(scan.nextLine());
System.out.println(java.lang.Math.pow(number, 1./3));
}
}

Offline LaundryLady

  • Helpers
  • *
  • Posts: 3253
  • Internet Challenged
    • View Profile

  • Total Badges: 26
    Badges: (View All)
    Seventh year Anniversary Sixth year Anniversary Search Poll Voter Level 5
Re: Cube .. number Ect
« Reply #1 on: January 04, 2008, 01:33:18 pm »
I am sorry but what is the purpose of the post?  Are you instructing?  Is this supposed to inform people?  The post is meaningless to except to the few that are Java guru's.


And I Play:  Mafia-Mandemz

Offline zilchuary

  • SMF For Free Newbie
  • *
  • Posts: 16
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: Cube .. number Ect
« Reply #2 on: January 04, 2008, 01:35:00 pm »
Well .. do you understand it
Does it have to be like a tutorial?

Offline LaundryLady

  • Helpers
  • *
  • Posts: 3253
  • Internet Challenged
    • View Profile

  • Total Badges: 26
    Badges: (View All)
    Seventh year Anniversary Sixth year Anniversary Search Poll Voter Level 5
Re: Cube .. number Ect
« Reply #3 on: January 04, 2008, 01:38:21 pm »
This is a support forum.  Be prepared to support and instruct usage of your postings.  I have no idea what that does or where it is supposed to be used. I hope someone else does and can say whether it even belongs in the forum.


And I Play:  Mafia-Mandemz

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: Cube .. number Ect
« Reply #4 on: January 04, 2008, 01:40:10 pm »
This is a support forum.  Be prepared to support and instruct usage of your postings.  I have no idea what that does or where it is supposed to be used. I hope someone else does and can say whether it even belongs in the forum.

LL the programming board here in support is for different programming languages.  The posts in it do not have to have anything to do with our forums, codes for them, etc.   Its all about programming and a place for them to discuss it.. its totally fine.

Offline zilchuary

  • SMF For Free Newbie
  • *
  • Posts: 16
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: Cube .. number Ect
« Reply #5 on: January 04, 2008, 01:40:49 pm »
IT blongs in the JAVA Section right
cause its java
...
if you want me to help out with SMF Codes i will .. i can start in about 2 days

Offline LaundryLady

  • Helpers
  • *
  • Posts: 3253
  • Internet Challenged
    • View Profile

  • Total Badges: 26
    Badges: (View All)
    Seventh year Anniversary Sixth year Anniversary Search Poll Voter Level 5
Re: Cube .. number Ect
« Reply #6 on: January 04, 2008, 01:41:19 pm »
Ok, sorry.


And I Play:  Mafia-Mandemz

Offline zilchuary

  • SMF For Free Newbie
  • *
  • Posts: 16
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: Cube .. number Ect
« Reply #7 on: July 09, 2008, 06:18:46 am »
Its fine, everyone make mistakes

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
1544 Views
Last post December 03, 2007, 11:28:00 pm
by Celebrus
1 Replies
1082 Views
Last post December 25, 2007, 08:28:23 pm
by SMF For Free
3 Replies
1374 Views
Last post March 27, 2008, 03:12:23 am
by MyrtleGail
9 Replies
7819 Views
Last post April 21, 2008, 07:30:30 am
by SMF For Free
0 Replies
2641 Views
Last post February 25, 2013, 03:12:09 pm
by Zelkova