-
-
Save codecademydev/9e0ee002bfc9d9ea9e991a0275d8f8be to your computer and use it in GitHub Desktop.
Codecademy export
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
using System; | |
namespace BuiltInMethods | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string[] summerStrut; | |
summerStrut = new string[] { "Juice", "Missing U", "Raspberry Beret", "New York Groove", "Make Me Feel", "Rebel Rebel", "Despacito", "Los Angeles" }; | |
int[] ratings = { 5, 4, 4, 3, 3, 5, 5, 4 }; | |
int index = (Array.IndexOf(ratings, 3)); | |
int position = index++; | |
int threeStars = Array.Find(ratings, three => three == 3); | |
Console.WriteLine($"Song number {index} is rated three stars"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment