Easy20 pts
Repeated String
String s, n. Infinite repeat. Count 'a' in first n chars.
Input
s\nn
Output
Count.
Sample
aba 10
Expected
7
Loading editor…
Output
No output yet. Run your code to see results.
String s, n. Infinite repeat. Count 'a' in first n chars.
s\nn
Count.
aba 10
7
Loading editor…
No output yet. Run your code to see results.