L0K11's blog

By L0K11, history, 20 months ago, In English

In c++, for 3 variables(a,b,c)-

int mx = max({a,b,c});

int mn = min({a,b,c});

for n variables(a1,a2,a3 ....n)-

int mx = max({a1,a2,a3 ....n});

int mn = min({a1,a2,a3 ....n});

Using this syntex we can easily find the max and min variable.

  • Vote: I like it
  • +12
  • Vote: I do not like it