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
#include <stdio.h> | |
#include <stdbool.h> | |
#include <sys/time.h> | |
typedef struct _profile_buf { | |
const char *title; | |
unsigned long long total; | |
unsigned long long index; | |
struct timeval timestamp; | |
} profile_buf; |
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
# Simulation created by Manuel Martinez-Almeida | |
# http://en.wikipedia.org/wiki/Coprime_integers | |
import fractions | |
import math | |
import random | |
def calculateProbability(end, steps): | |
count = 0 |
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
// PART 3 | |
static void metodo3(NotaAlumnoAsignatura [] a) | |
{ | |
int current = a[0].numAlumno; | |
double total = 0; | |
int nuNotas = 0; | |
try { | |
PrintWriter salida = new PrintWriter(new FileWriter("Notas.txt")); | |
for(int i = 0; i < a.lenght; ++i) { |
NewerOlder