0

Anyone knows how to code this --> "count the number of alphabets U and M when user put a sentence"

cant think of because its involving single character instead of numbers. im still new. a beginner.

18th Sep 2017, 11:19 AM
Fatin Athirah
Fatin Athirah - avatar
3 ответов
+ 1
What language do you use?
18th Sep 2017, 11:50 AM
spcan
spcan - avatar
0
im using java..
18th Sep 2017, 11:55 AM
Fatin Athirah
Fatin Athirah - avatar
0
The easiest way would be to just use a for loop to iterate over the string and count how many "U" and "M" are there.
18th Sep 2017, 12:09 PM
spcan
spcan - avatar