Check out example codes for "max three values c++". It will help you in understanding the concepts better.

Code Example 1

int a = 1;
    int b = 2;
    int c = 3;

    int m = std::max({a, b, c});

Learn ReactJs, React Native from akashmittal.com