"roll the dice" challenge C++
Hi there smart people! So I have this practice challenge and I'm lost on the return part (and some other parts as well lol). What exactly do I have to return and should I use the "if else" sequence in the main function? Or what? I don't get it plz send help >.< *** While playing a board game, you and your friend roll the dice and the person who rolled the higher number moves forward. Write a function that takes two numbers as arguments and returns the higher number of the two. Print the result. If numbers are equal function must return that number. *** #include <iostream> using namespace std; int max(int num1, int num2) { //complete the function } int main() { //getting inputs int first; cin >> first; int second; cin >> second; //call the function and print result return 0; } https://www.sololearn.com/learning/1051/1637/2903/1