Posts by lucaaslb • 153 points
5 posts
-
0
votes2
answers42
viewsA: Browser does not open HTML with CSS
Hello, you set your H1 color to white in CSS. There’s nothing wrong when I run the page, the texts are displayed but if your background is also white you won’t be able to see at all.
-
1
votes2
answers44
viewsA: Query syntax error with RFID code filter
in their querys failed to inform what you want to select. Example: SELECT nome_coluna FROM estoque WHERE ....
-
3
votes3
answers1537
viewsA: Calculate the age group of 10 people within a repeat loop?
pessoas = [""] * 10 i = 0 soma = 0 while i < len(pessoas): pessoas[i] = int(input("Digite a sua idade: ")) soma = soma + pessoas[i] i = i + 1 if pessoas <= 17: print("--- Menor de Idade ----")…
-
8
votes3
answers75
viewsA: How to calculate a FOR for 6 in 6 increments it give an echo?
place an IF with a condition checking if your counter is a multiple of 6. $carros = array("Volvo", "BMW", "Toyota", "Alfa Romeu", "WV", "Teste", "test2", "Teste4", "Teste3", "Teste5", "Volkswagem",…
-
1
votes3
answers4140
viewsA: Function that calculates the factorial of a number
You can use recursion too. Take a look at the example: int factorial(int num){ if (num == 1 || num == 0){ return 1; } return factorial(num - 1) * num; } Recursion: recursion is the definition of a…