Aprende informática haciendo, paso a paso
Cursos gratis en español de Office, Java, desarrollo web y Visual Basic .NET, con ejemplos que puedes probar en tu propio equipo.
| A | B | C | |
|---|---|---|---|
| 1 | Alumno | Nota | Estado |
| 2 | Ana | 16 | Aprobado |
| 3 | Luis | 9 | Repasar |
C2: =SI(B2>=11;"Aprobado";"Repasar")
int suma = 0;
for (int i = 1; i <= 5; i++) {
suma += i;
}
System.out.println("Suma: " + suma);
Suma: 15
const notas = [14, 17, 11]; const total = notas.reduce( (a, b) => a + b, 0 ); console.log(total / notas.length);
14
Dim edad As Integer
If Integer.TryParse("25", edad) Then
Console.WriteLine("Edad: " & edad)
Else
Console.WriteLine("Escribe un número")
End If
Edad: 25
22:03
43:55
26:02
45:43
18:13
21:25