# @Zaid

## java do while

June 02, 2022 · Java
```import java.util.*;
import java.lang.*;
import java.io.*;

// The main method must be in a class named "Main".
class Main {
public static void main(String[] args) {
System.out.println("Hello world!"+2+"\n");
int a = 2;
int b = 5;
System.out.println(a>b ? "mayor":"menor");```

## poker

April 21, 2022 · Python
```# -*- coding: UTF-8 -*-

import random

#auto function: responsable del establecimiento de una secuencia de mazos
def auto():
pokers=[]
poker=[]
for j in ['A','2','3','4','5','6','7','8','9','10','J','Q','K']:
poker.append(i)
```

## CalcularTiempo

April 16, 2022 · Python
```from math import sin #para usar la función seno

from time import time #importamos la función time para capturar tiempos

x = list(range(0,100)) #vector de valores desde 0 a 99
y = [0.0 for i in range(len(x))] #inicializamos el vector de resultados con 100 valores 0.0

tiempo_inicial = time()

for i in range(100):

```

## generarNumeroSinRep

April 15, 2022 · Python
```import random
def unico(x,L):
esUnico=True
for i in range(len(L)):
if x==L[i]:
esUnico=False
break
return esUnico
L=[]
j=0
while j<10:
```

## Factorial_py

updated April 16, 2022 · Python
```from time import time
tiempo_inicial = time()
print('FACTORIAL')
fac = 1

for i in range(1,6,1) :
print(i)
fac=fac*i
tiempo_final = time()
tiempo_ejecucion = tiempo_final - tiempo_inicial
print(" = ",fac,"-> ",tiempo_ejecucion, "seg")```

## Busqueda_primero_en_anchura_01

updated April 15, 2022 · Python
```import sys
from Nodos import Nodo
resuelto = False
nodos_frontera = []

nodos_frontera.append(nodo_raiz)
while (not resuelto) and len(nodos_frontera) != 0:
nodo_actual = nodos_frontera.pop(0)```

## Nodos

April 13, 2022 · Python
```class Nodo:
self.hijo = None
self.accion = None
self.acciones = None
self.costo = None
self.set_hijo(hijo)

## Factorial GO

April 07, 2022 · Go
```package main

import "fmt"

func main() {
var fac = 1
var suma = 0
fmt.Println("FACTORIAL")
for i:=1; i<=5; i++{
fac=fac*i
fmt.Println(fac,"\n")```

## rombo

October 14, 2021 · C++
```#include <stdio.h>
#include <stdlib.h>

int main(void)
{
printf("  **  ROMBO ASIMETRICO  **\n\n");
int i, n, j, k, s;
printf("  Diga cuanto debe medir el lado del rombo:  ");
scanf(" %d", &n);
for (i=0; i<n; i++)
{
```

## HolaMundoC

September 19, 2021 · C++
```#include <iostream>

int main() {
std::cout << "Hola Mundo" << std::endl;
return 0;
}```

## HolaC#

September 19, 2021 · C#
```using System;

namespace MyCompiler {
class Program {
public static void Main(string[] args) {
Console.WriteLine("Hola Mundo");
}
}
}```

## Hola_Java

September 19, 2021 · Java
```import java.util.*;
import java.lang.*;
import java.io.*;

// The main method must be in a class named "Main".
class Main {
public static void main(String[] args) {
System.out.println("Hola Mundo");
}
}```

## Hola_Ruby

September 19, 2021 · Ruby
`puts "Hola Mundo "`

## DivisionFactorial-Funciones

January 24, 2021 · C++
```#include <iostream>
#include <math.h>
using namespace std;
float n,n2;
void leer(float &n, float &n2);
int factorial(int n);

int main(int argc, char *argv[]) {
int r;
leer(n,n2);;
factorial(n);
```

December 31, 2020 · C++
```#include <iostream>
#include <stdio.h>

using namespace std;
int array[10], i=0, c=0, n=0, buscar=0;
int main()
{
cout<<"Ingrese cantidad de numeros a ingresar: ";
cin>>n;
for(i=0; i<n; i++){
cout<<i+1<<": ";
```

## lanzamientoFornite

December 31, 2020 · C++
```#include <iostream>
#include <cmath>
using namespace std;

int main() {
int N,X,Y;
float d1=0,d2=0;
string p="",g="";
cin>>N;
if (N < 2 || N > 4)
return 0;```

## impostor

December 31, 2020 · C++
```#include <iostream>
#include <string>
using namespace std;

int main() {
string str;
cin>>N;
if (N < 2 || N > 9)
return 0;
cin.ignore();```

## Comparardor

December 30, 2020 · C++
```#include<iostream>
using namespace std;
int i,n;
double x,y;
int main() {
cin >> n;
for (i=1;i<=n;i++) {
cin >> x>>y;
if(x>y)
cout<<x<<endl;
else if(y>x)```

December 30, 2020 · C++
```#include <iostream>
using namespace std;
int c,primo,n,i,s=0,cant=0;
int main(int argc, char *argv[]) {
cin>>n;
for(i=2; i<=n; i++){
primo=1;
c=2;
while((c<=i/2) && primo){
if(i%c==0)
primo=0;
```

## verificarNumCrDec

November 24, 2020 · C++
```#include <iostream>
using namespace std;
int x,y;
int main() {
//std::cout << "Hello world!" << std::endl;
cin>>x;
cin>>y;
/*if(x>y){
cout<<"decreciente";
}else{
cout<<"creciente";```