R
R
Rasul_El-Sheikh2015-02-07 10:53:33
Programming
Rasul_El-Sheikh, 2015-02-07 10:53:33

I don't understand the PHP code?

if(($j>$chislo*$i-$chislo)&&($j<=$chislo)) - this line is confusing. What does she mean?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
I
index0h, 2015-02-07
@index0h

Это черезжопная надпись для
chislo * (i - 1) < j <= chislo
Обычно за такое форматирование + именование карают анально )).

Владимир Мартьянов, 2015-02-07
@vilgeforce

Если J больше чем chislo*(i-1) И J меньше либо равно chislo...

E
Evsign, 2015-02-07
@Evsign

If j is greater than chislo times i minus chislo AI j is less than or equal to chislo.
I so understand difficulties are caused by the first bracket.
There, from the beginning, in the first bracket, chislo * i-chislo is performed, then it is compared with the j variable.
Don't forget that the MULTIPLICATION is performed from the beginning.

A
Alexey Yakhnenko, 2015-02-07
@ayahnenko

if (W is greater than ((NUM times AND) minus NUM)) and (W is less than or equal to NUM))

C
Crash, 2015-02-07
@Bandicoot

Space it out so it's easier to understand

S
Sergey, 2015-02-07
@gangstarcj

And what's wrong here? Learn the priorities of arithmetic signs (second grade school). Learn what brackets are used for (grades 3-5). Well, the most difficult thing is boolean values, look for a table of boolean operations (it seems to be called that)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question