Results 1 to 4 of 4

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    GeorgeGFX's Avatar secret.club

    Join Date
    Nov 2010
    Country
    Posts
    15,461
    Thanked
    2,337
    Thanks
    5,080
    If you want to get into the field of coding, it's a bad thing (and a bad habit also) asking people to literally write the code for you.
    I could do it and so could other people but it would be pointless if you're not even trying to write the code yourself, not doing that would get you to nowhere..
    A few hints;
    Create a variable > parse it to double/decimal and read it from the console (say it's nameOfVariable).
    Create a method called rootIsPositive(double <nameOfVariable>)
    Make a boolean inside the method and set it to true
    Make if-checks or use create a whole case (an if would be better) > write your algorithm > done.

    >>> Credits to Sikk408 @ DevaintArt <<<

  2. The following user said thank you to GeorgeGFX for this useful post:

    Charm Hye (08-17-2017)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)