Cody

# Problem 44688. World Cup 2018 Prediction!

Solution 1561427

Submitted on 15 Jun 2018 by Majid Farzaneh
• Size: 7
• This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
teams={'Russia','Saudi Arabia', 'Egypt', 'Uruguay', 'Portugal', 'Spain','Morocco','Iran',... 'France','Australia', 'Peru','Denmark', 'Brazil', 'Switzerland', 'Costa Rica', 'Serbia', ... 'Germany', 'Mexico', 'Sweden', 'STH Korea', 'Belgium', 'Panama', 'Tunisia', 'England' , ... 'Argentina','Iceland', 'Croatia', 'Nigeria', 'Poland', 'Senegal', 'Colombia', 'Japan'}; d=false; for i=1:numel(teams) if strcmp(Worldcup2018winner(),teams{i}) d=true; break; end end assert(d)

ans = "Iran" ans = "Iran" ans = "Iran" ans = "Iran" ans = "Iran" ans = "Iran" ans = "Iran" ans = "Iran"

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!