I need Help with String and integer manipulation | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

I need Help with String and integer manipulation

1. Write a function that prints numbers from 1 to 100. For multiples of three print ā€œFooā€ instead of the number and for the multiples of five print ā€œBarā€. For numbers which are multiples of both three and five print ā€œFooBarā€. For the remaining numbers just print this number. 2.Write a function that transforms string ā€œa bb ccc dddd eeeeeā€ to ā€œA,Bb,Ccc,Dddd,Eeeeeā€

7th Feb 2019, 7:11 AM
Ernest
Ernest - avatar
1 Resposta
+ 4
7th Feb 2019, 7:30 AM
Anna
Anna - avatar