Posts by Felipe • 25 points
2 posts
-
1
votes1
answer45
viewsQ: How to exchange a word between a limit created by two specific points within a string?
Between the word fogo and the word gelo there is a content, and the goal is to change that content by sobrenatural code: s = "1 fogo bom dia gelo 2 fogo boa tarde gelo 3 fogo boa noite gelo 4" s =…
python-3.xasked Felipe 25 -
0
votes2
answers133
viewsQ: how to print a list of numbers with an interspersed sum?
I have this list of 1 to 10. [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] Code: List <Long> lista = new ArrayList(); for (long a = 1; a <= 10; a++) { lista.add(a); System.out.print(lista); } I would…