void setup() {
Serial.begin(9600);
Serial.println("");
}
void loop() {
if (Serial.available()){
int x = 0;
int total_e = Serial.parseInt();
int total_m = Serial.parseInt();
x = (100 * total_m)/ total_e;
if (Serial.available()==1){
Serial.println("Ejercicio N°10 (SERIAL.PARSEINT).");
Serial.println("Creado por : Andres Felipe Veloza Cañas.");
Serial.println("Curso : 7A");
Serial.println("Estructura tema : A un ingeniero le solicitan crear un programa que le permita poder calcular el promedio de estudiantes mujeres del curso 7A.");
Serial.print("El porcentaje de niñas es : ");
Serial.print(x);
Serial.print("%.");
}
}
}