2 ms·
Yes, quiz.txt was the start of a C# program with a main method and a function that was called to do the work asked. The common string based solution was to use
by hahamrfunnyguy 3y ago
Yes, quiz.txt was the start of a C# program with a main method and a function that was called to do the work asked.
The common string based solution was to use a for loop, convert the counter to a string, parse the digits converting each one to a an integer and performing the calculation.
The exercise was given in C# so candidates just use string interpolation to output the result