Posts by Erick Prates • 39 points
6 posts
-
0
votes4
answers2933
viewsA: Difference between operators && e ||
Logical operators The logical operators return true (V) or false (F) according to their operandos. Logical operators are also known as connective, for they are used to form new propositions from the…
-
0
votes2
answers56
viewsA: My site is not redirected to https
This is a very simple alternative: RewriteEngine On RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$ [NC] RewriteRule ^.*$ https://www.domain.com%{REQUEST_URI} [R,L] If you…
-
2
votes2
answers152
viewsA: What is the "customElements" property for?
"Custom Elements" is a web component specification that defines how to create and use new types of DOM elements. There are some basic rules on how to name and define your custom elements. They are:…
javascriptanswered Erick Prates 39 -
0
votes2
answers448
viewsQ: Algorithm problem over percentage
I had to do this algorithm : In 2010, a small Brazilian city has 20,000 inhabitants. The forecast of IBGE is that this city grows at a rate of 5% per year. Knowing of this, make an algorithm that…
-
-1
votes1
answer67
viewsA: App only brings a record on Android
I’m not sure and I can’t confirm at the moment, but if I’m not mistaken you can use mysqli_fetch_all(), that will already return all desired records in an array, so that you can send directly as…
-
-1
votes3
answers33840
viewsQ: C - how to calculate the factorial of a number?
I’m trying but I’m not getting it, for example: factor 5 is given by 5 * 4 * 3 * 2 * 1. You have to develop a program that calculates the factorial of an input number. (using )