[help]combination function/array.

hi
firstly i newbie in c/c++

i have some problem in function and array :(
i donno where i start first function or array?

the program like this:-

team
Red Team
Blue Team
Green Team
Yellow Team

medal
gold = 3 point
silver = 2 point
bronze =1 point

medal <= 10

output:

Please enter gold medal for Red Team : 3 (input)
Please enter silver medal for Red Team :3 (input)
Please enter bronze medal for Red Team : 2 (input)

Please enter gold medal for Blue Team : 4 (input)
Please enter silver medal for Blue Team : 4 (input)
Please enter bronze medal for Blue Team: 3 (input)

Please enter gold medal for Green Team :2 (input)
Please enter silver medal for Green Team :1 (input)
Please enter bronze medal for Green Team : 3 (input)

Please enter gold medal for Yellow Team : 1 (input)
Please enter silver medal for Yellow Team : 2(input)
Please enter bronze medal for Yellow Team: 2(input)

Team Gold Silver Bronze Score
Red 3 3 2 17
Yellow 4 4 3 23
Green 2 1 3 11
Blue 1 2 2 9


winner is : Yellow Team <top score>

any advice?...

(sorry for bad English)

thanks,
Last edited on
Topic archived. No new replies allowed.