Julian Gonzalez

Generation

generate functionSat, 01 Apr 2023

using dictionarys in c#

public void add(string a, string b) { var dict = new Dictionary<string, int>(); dict.Add("one", 1); dict.Add("two", 2); dict.Add("three", 3); dict.Add("four", 4); dict.Add("five", 5); dict.Add("six", 6); dict.Add("seven", 7); dict.Add("eight", 8); dict.Add("nine", 9); dict.Add("ten", 10); dict.Add("eleven", 11); dict.Add("twelve", 12); dict.Add("thirteen", 13); dict.Add("fourteen", 14); dict.Add("fifteen", 15); dict.Add("sixteen", 16); dict.Add("seventeen", 17); dict.Add("eighteen", 18); dict.Add("nineteen", 19); dict.Add("twenty", 20); dict.Add("thirty", 30); dict.Add("forty", 40); dict.Add("fifty", 50); dict

Questions about programming?Chat with your personal AI assistant