Facebook
From Diminutive Flamingo, 2 Years ago, written in C++.
This paste is a reply to MaxValue from Magda2137 - go back
Embed
Viewing differences between MaxValue and Re: MaxValue
#include 
#include 
using namespace std;
int findMaxValue (vector  numbers);
int main() {
    int a = 4, b = 2, c = 5;

    cout << "max value is "<< findMaxValue({a, b, c}) << endl;

    return 0;
}
int findMaxValue (vector  numbers){
    int max = numbers[0];
    for (int number : numbers){
        if (max < number)
            max = number;

    }
    return max;
}

Replies to Re: MaxValue rss

Title Name Language When
Re: Re: MaxValue Whipped Monkey cpp 2 Years ago.