Results 1 to 3 of 3
  1. #1
    Gayathri12 is offline Member
    Join Date
    Jul 2010
    Posts
    5
    Rep Power
    0

    Default plzz help me to solve this program

    Java program that takes a 5 digit number and calculates 2 power
    that number and prints it can any one plz post the solved program plzzz its urgent ... thanks in advance

  2. #2
    arun9683 is offline Member
    Join Date
    Jun 2010
    Location
    Bangalore,India
    Posts
    70
    Rep Power
    0

    Default

    Can be achieved as below

    Java Code:
     
    
    long a = 99999; //any 5 digit number
    long b = a * a;
    
    long s = (long) Math.pow(a,2);
    Arun K R,Bangalore,India
    :)

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by Gayathri12 View Post
    Java program that takes a 5 digit number and calculates 2 power
    that number and prints it can any one plz post the solved program plzzz its urgent ... thanks in advance
    We prefer to help those who demonstrate some effort first at solving their problem. Please show us what you've done.

Similar Threads

  1. Replies: 1
    Last Post: 07-06-2010, 03:38 AM
  2. plz help solve dis program 4 me plz plz
    By jitun2004 in forum New To Java
    Replies: 6
    Last Post: 04-15-2009, 05:39 AM
  3. Solve my program
    By Mika in forum New To Java
    Replies: 7
    Last Post: 01-21-2009, 07:20 AM
  4. Replies: 2
    Last Post: 08-27-2008, 03:40 PM
  5. Doubt Plzz Solve it
    By ravjot28 in forum New To Java
    Replies: 3
    Last Post: 06-27-2008, 05:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •