KodingKid

C# car sorter

Mar 30th, 2021 (edited)
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. string[] cars = {"Alfa Romeo", "BMW", "Chevrolet", "Dacia"}; //Everything but the BMW is also found in this script https://pastebin.com/PvqJawb2
  2. Console.WriteLine(cars[0]); //Outputs Alfa Romeo
  3. Console.WriteLine(cars[1]); //Outputs BMW
  4. Console.WriteLine(cars[2]); //Outputs Chevrolet
  5. Console.WriteLine(cars[3]); //Outputs Dacia
Add Comment
Please, Sign In to add comment