Help translate this code to C:
begin ch:=random(100); write(ch, ' '); if ch mod 2 = 0 then inc(cnt) else if ((ch mod 2 <> 0) and (ch > max)) then max:=ch; end;
Help translate this code to C:
begin ch:=random(100); write(ch, ' '); if ch mod 2 = 0 then inc(cnt) else if ((ch mod 2 <> 0) and (ch > max)) then max:=ch; end;
It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:
Source: https://ru.stackoverflow.com/questions/39885/
All Articles