Created
May 30, 2019 06:36
-
-
Save sayantanHack/0689f7700285ea0f4b8d54d11df8c3ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// LIST RANKING | |
void main(){ | |
var superHeroes = ['Hulk','Batman',"spiderman","flash"]; | |
superHeroes.forEach((hero){ | |
print("Position : ${superHeroes.indexOf(hero)+1} Next super Hero is $hero "); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment