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
import java.util.Scanner; | |
public class bruno { | |
public static void main (String args[]) { | |
System.out.println("Dime hasta que numero quieres saber los numeros primos:"); | |
Scanner number = new Scanner(System.in); | |
Scanner print_prime = new Scanner(System.in); | |
int top_number = number.nextInt(); |
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
import os | |
folder = raw_input('Dime la carpeta: \n') | |
lista = os.listdir(folder) | |
text_file = os.open('./lista_de_archivos.txt',os.O_CREAT|os.O_RDWR) |
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
# -*- coding: utf-8 -*- | |
sumatoria_n1 = 0 | |
sumatoria_n2 = 0 | |
for x in range(10): | |
n1 = raw_input('Nota del alumno ' + str(x) + ' en matematica: ') | |
n2 = raw_input('Nota del alumno ' + str(x) + ' en fisica: ') | |
try: |
NewerOlder