supriseX
supriseX
CC#
Created by supriseX on 5/8/2023 in #help
❔ error CS1525: Unexpected symbol `String'
using System; public String DuplicateCount(string input) {
foreach (char a in input) { int i = a.Count; if (i > 1){ Console.WriteLine($"{a}:{i}");} }
} DuplicateCount("indivisibilities"); why doesn't this work?
21 replies