This file contains 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 <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <wait.h> | |
#include <time.h> | |
#define BUFFER 1024 | |
/* | |
Hijo n |
This file contains 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 <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <wait.h> | |
#include <time.h> | |
#define BUFFER 1024 | |
/* | |
Hijo n |
This file contains 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 <signal.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <sys/wait.h> | |
#include <unistd.h> | |
void *handler; | |
void funcHandler(int sig) |
This file contains 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 <stdlib.h> | |
#include <sys/wait.h> | |
#include <unistd.h> | |
#include <time.h> | |
#include <signal.h> | |
#define TABLE_SIZE 10000 | |
struct timespec start, end; |
This file contains 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 <iostream> | |
#include "Random.hpp" | |
#include <vector> | |
using std::vector; | |
int main() | |
{ | |
vector<int> vect; | |
int data; | |
for (int i = 0; i != 5; ++i) { |
This file contains 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 <iostream> | |
#include "Random.hpp" | |
int main() | |
{ | |
int* vect = new int[5]; | |
for (int i = 0; i != 5; ++i) { | |
std::cin >> vect[i]; |
This file contains 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
static bool Palindroma(string palabra) | |
{ | |
palabra = palabra.Replace(" ", ""); | |
palabra = palabra.ToLower(); | |
int len = palabra.Length; | |
for(int i = 0; i != len - 1; ++i) | |
{ | |
if (palabra[i] != palabra[len - 1]) | |
return false; | |
len--; |
This file contains 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
using System; | |
using System.Numerics; | |
namespace Serie_de_Fibonacci | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Ingrese la posición para hallar el número de la sucesión de Fibonacci: "); |
This file contains 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
using System; | |
namespace ReplaceALL | |
{ | |
class Program | |
{ | |
static string ReplaceAll(string str, string palabra_reemplazar, string palabra) | |
{ | |
string aux = "", aux1 = ""; | |
int len = str.Length, correcto = palabra_reemplazar.Length, j = 0; |
This file contains 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
a = int(input("Ingrese el numero:")) | |
factorial = 1 | |
for i in range(1, a+1): | |
factorial = factorial*i | |
print(f"{i}! --> {factorial}") |
NewerOlder