Question: I need help in c + + on this problem main.cpp / * * You have a green lottery ticket, with ints a , b

I need help in c++ on this problem
main.cpp
/**
You have a green lottery ticket,
with ints a, b, and c on it. If the numbers are
all different from each other, the result is 0.
If all of the numbers are the same, the result
is 20. If two of the numbers are the same,
the result is 10.
*/
int green_ticket(int a, int b, int c)
{
int result;
// Add your code here
return result;
}
I need help in c + + on this problem main.cpp / *

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!