Results 1 to 5 of 5

Thread: Can someone Help ME?

  1. #1
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Can someone Help ME?

    SCAR Code:
    program thing;

    var x, y : Integer;

    begin
      y := 0;
      x := 2 * y;
      x := x / y;
      WriteLn(IntToStr(x));
    end.

    It gives me a funny error
    ~ Metagen

  2. #2
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program thing;

    var
      x, y : Integer;

    begin
      y := 0; // has to be more than zero ..
      x := 2 * y;
      x := x / y;
      WriteLn(IntToStr(x));
    end.


    Just because you have such a nice quote from me in your siggy ^^

    Aaand.
    Why do all of your "halp?" threads contain stuff like this? XD

  3. #3
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    because im bored... ok ill make a new thread with another problem
    ~ Metagen

  4. #4
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Y=0 and if you multiply by 2 you get 0
    There for X=0.
    On line 8 your saying
    0 := 0 / 0;
    And SCAR cant divide by zero.

    edit: Crap you beat me lol.
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  5. #5
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ohh Gee... u caught the error!!! THANKJ00!!!
    ~ Metagen

Thread Information

Users Browsing this Thread

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

Posting Permissions

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