Search:

Type: Posts; User: popkin1241

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    580

    Re: help with a question about if else.

    yes i did try the options on bluej but somhow some of them dident work well,
    i thought that the answer is 1
  2. Replies
    3
    Views
    580

    help with a question about if else.

    guys i have a question this is the question:
    if(x < 0) y = x; else y = 0; to what is this similar?
    1) y = (x < 0) ? x : 0;

    2) x = (x < 0) ? y : 0;

    3) (x < 0) ? y = x : y = 0; ...
Results 1 to 2 of 2