I am the following code:
for (int i = 0; i < 10;) {
i = i++;
System.out.println("Hola Mundo");
System.out.println("i = " + i); // Muestra i = 0
}
I don't understand why i
it is never equal to 1
.
I am the following code:
for (int i = 0; i < 10;) {
i = i++;
System.out.println("Hola Mundo");
System.out.println("i = " + i); // Muestra i = 0
}
I don't understand why i
it is never equal to 1
.
I have the following code in Bootstrap:
<form action="contactoGracias.html">
<div class="form-group">
<label for="name">Nombre:</label>
<input type="text" class="form-control w-50" id="name" required>
</div>
<div class="form-group">
<label for="surname">Apellidos:</label>
<input type="text" class="form-control w-50" id="surname" required>
</div>
</form>
If I don't put anything else, the inputs occupy 100% of the parent element. Is there a class that specifies that I want them to be 100% full when the screen size is small and 50% full when the screen size is large? Thank you
I am studying the use of the comma to separate variables:
var suma = 10, iterador;
I don't understand why I get error when I do:
var resultado = contador = 20, contador += 5;
If I understood correctly, the expression is evaluated from left to right, so when I try to increase the counter variable, it should already be declared and initialized with a value of 20. Thanks
I have the following code:
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Modelo Cajas</title>
<style type="text/css">
#contenedor{
width: 400px;
height: 200px;
margin-left: auto;
margin-right: auto;
border:solid 2px;
}
#interno{
height: 100%;
padding: 20px;
border: dashed 10px red;
}
</style>
</head>
<body>
<div id="contenedor">
<div id="interno"></div>
</div>
</body>
</html>
I don't understand why the "inner" div exceeds the "container" div in height. I suspect it may be because of the height property but I don't understand why this effect occurs. Thank you