Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #############################################################################################################################
- # ENTRADA
- numeroN = int(input())
- # PROCESO & SALIDA
- for i in range(numeroN) :
- print("HOLA !")
- print("FIN")
- #############################################################################################################################
- totalAlumnos = int(input())
- menor = 7
- for contAlumno in range (totalAlumnos) :
- nota = float(input())
- if nota < menor :
- menor = nota
- print("Menor nota final :",menor)
- #############################################################################################################################
- totalAlumnos = int(input())
- mayor = 1
- for contAlumno in range (totalAlumnos) :
- nota = float(input())
- if nota > mayor :
- mayor = nota
- print("Mayor nota final :",mayor)
- #############################################################################################################################
- # ENTRADA
- totalAsistentes = int(input())
- # PROCESO
- cantidadMayores = 0
- for aux in range(1,totalAsistentes+1) :
- edad = int(input())
- if edad >= 18 :
- cantidadMayores = cantidadMayores + 1
- if cantidadMayores == totalAsistentes :
- print("Todos eran mayores de edad")
- elif cantidadMayores == 0 :
- print("No hubo mayores de edad")
- else :
- print("Cantidad de mayores de edad:",cantidadMayores)
- #############################################################################################################################
- # entrada
- numeroN = int(input())
- # proceso & salida
- aux = numeroN + 1
- total = 0
- while total < 5 :
- if aux % 2 == 1 :
- print(aux,end=" ")
- total = total + 1
- aux = aux + 1
- #############################################################################################################################
- # ENTRADA
- numeroN = int(input())
- # PROCESO & SALIDA
- for numero in range(1,numeroN+1) :
- if (numero % 3)>0 and (numero % 7)>0 :
- print(numero,end=" ")
- #############################################################################################################################
- # ENTRADA
- a = int(input())
- b = int(input())
- # PROCESO
- suma = 0
- for num in range(a,b+1) :
- if (num % 2 == 0) and (num % 3 == 0) :
- suma = suma + num
- # SALIDA
- if suma == 0 :
- print("NO EXISTEN NUMEROS DIVISIBLES POR 2 Y POR 3 EN EL INTERVALO")
- else :
- print("SUMA =",suma)
- #############################################################################################################################
Advertisement
Add Comment
Please, Sign In to add comment