Answer the question
In order to leave comments, you need to log in
C++ program to calculate the maximum in a,b,c?
Guys, hello everyone!
How to make a program to calculate the maximum in {a,b,c}.
Help please, otherwise it doesn’t work)
(I wanted to do it through if else conditions, but I can’t do it completely)
Answer the question
In order to leave comments, you need to log in
#include <algorithm>
#include <vector>
int main()
{
std::vector<int> abc{1,2,3};
return *std::max_element(abc.begin(), abc.end());
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question