Skip to content

Instantly share code, notes, and snippets.

@Roberto24p
Roberto24p / vignere.cs
Created August 9, 2021 19:51
Cifrado Vigenere
using System;
namespace myFirstApp5._0
{
class Program
{
private static int Abecedario = 97;
static void Main(string[] args)
{
int opcion = Menu();
@Roberto24p
Roberto24p / cifrado.c
Last active August 9, 2021 19:47
Cifrado
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define TAMANIOCLAVE 50
#define TAMANIOTEXT 100
struct columna{
int claveAscii;
char *dataColumna;
};
typedef struct columna COLUMNA;
@Roberto24p
Roberto24p / invertirNumero.c
Last active March 13, 2020 03:25
Ingresar un número entero y te devuelve lo devuelve invertido (Palíndromo).
#include <stdio.h>
#include <math.h>
void invertirNumero(int *);
int cantidadDigitos(int );
int main()
{
int valor = 0, *punteroV;
printf("---Ingresa un valor: ");
@Roberto24p
Roberto24p / estilos.css
Created December 27, 2019 02:45
Calculadora hecha con html, css y javascript - Practica
table,td{
border: 1px solid rgb(0, 110, 255);
padding: 25px;
background: rgb(206, 201, 201);
border-radius: 5px;
}
table{
/*border-collapse: collapse;*/
@Roberto24p
Roberto24p / piezaCa.java
Last active November 12, 2019 02:33
Un código relativamente sencillo que te pide las coordenas en X y en Y. Muestra por pantalla los posibles movimiento de la pieza caballo del juego ajedrez, se resolvio de 2 modos, iterativo y recursivo. Cualquier recomendación o bug, me serviria para mejorar.
import java.io.*;
public class piezaCa{
private int movX;
private int movY;
private String cadena;
private String cadenaR;
public piezaCa(int movX, int movY){
this.movX = movX;
this.movY = movY;
@Roberto24p
Roberto24p / Arreglo_promedio.c
Last active September 6, 2019 18:15
Código para sacar promedio de cada una de las filas de un arreglo 5x5 y el promedio de total
#include <stdio.h>
void ingresar(float [][5], int , float [], int );
float promediosfilas(float [], int);
void presentar( float);
int main()
{
float arreglo[5][5]={{'\0'}}, prom, promedio[5]={'\0'};
using Proyecto_Segundo_Parcial.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Proyecto_Segundo_Parcial.Control
{
class AdmBoletos