Problem 44688. World Cup 2018 Prediction!

Solution 1561429

Submitted on 15 Jun 2018 by Doddy Kastanya
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)

y = "Peru" y = "Peru" y = "Peru" y = "Peru" y = "Peru" y = "Peru" y = "Peru" y = "Peru" y = "Peru" y = "Peru" y = "Peru"

Suggested Problems

More from this Author18

Community Treasure Hunt

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

Start Hunting!