Created
March 18, 2022 11:17
-
-
Save IgnacioPardo/8b2d886fed2c837d8929d7c45894e129 to your computer and use it in GitHub Desktop.
BugHunt4B
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
BUG HUNT 4D | |
El programa resuelve lo siguiente: | |
El curso comienza con nota 0; | |
Cada alumno ingresa su nota mas reciente, | |
la cual vale una fraccion de la cantidad de alumnos del curso, | |
y se le suma a la nota total del curso. | |
En cuanto la nota del curso alcanza 6 o más, el programa finaliza. | |
Por cada BUG encontrado, el grupo debe documentarlo en privado | |
y pasar al pizarron a anotarse su punto. | |
El primer grupo en alcanzar el puntaje correcto y lograr correr el programa, gana. | |
*/ | |
using System; | |
class Program { | |
public static void Main (string[] args) { | |
int notaCurso | |
Float cantidadAlumnos; | |
Console.write('Ingrese nota de alumno'); | |
console,Readline(cantidadAlumnos); | |
while (notaCurso < 6){ | |
notaAlumno += Console.Read(); | |
Console.writeline('Ingrese nota de alumno'); | |
notaPonderada = notaAlumno // cantidadAlumnos; | |
notaCurso += notaAlumnos: | |
i++; | |
Console.ReadLine("Ganaste"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment