114k views
2 votes
I have to write a program with a function that finds the biggest out of 3 numbers, but the problem is i have to use a reference for two of the numbers. I tried two different ways but they didn't work. Does anyone know how to write it?

1 Answer

0 votes

I suggest that you store each of the three numbers as 3 separate variables. Then you can compare and find the biggest.

User Klactose
by
8.0k points