Recent programs

ContadorDigitos.java

an anonymous user · May 30, 2023 · Java
import java.util.Scanner;

public class ContadorDigitos {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("Ingrese un número entero: ");
        int numero = scanner.nextInt();
        int cantidadDigitos = contarDigitos(numero);
        System.out.println("El número " + numero + " tiene " + cantidadDigitos + " dígitos.");
    }
    

lknlkn

an anonymous user · May 30, 2023 · 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!");
    }
}

teste1

longaray · May 30, 2023 · NodeJS
console.log("Hello world!");

teste

longaray · May 30, 2023 · Deno
console.log("hello world");

test tree set

an anonymous user · May 30, 2023 · 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) {
        
        TreeSet<A> tree = new TreeSet<>();
        
        System.out.println("Hello world!");

desendente sin mada

an anonymous user · May 30, 2023 · Java
import java.util.*;
import java.lang.*;
import java.io.*;

public class Main
{
public static void main(String[] args) 
{     // Insertion Sort....
      int[] arr2 = new int[] { 5, 4, 3, 8, 32, 768, 564, 95, 172, 1500, 859, 754 };
      int number = arr2.length;
      for(int a = 1; a < number; a++)
fsexo=c(60,10)
names(fsexo)=c("Si","No")
psexo=round(fsexo/sum(fsexo)*100,digits=1)
pie(fsexo)
etiqueta=paste(psexo,"%")
etiqueta=paste(psexo,"%",sep="      ")
etiqueta=paste(psexo,"%",sep=" ")
etiqueta=paste(psexo,"%",sep="")
etiqueta=paste(names(fsexo),etiqueta)
pie(fsexo,labels=etiqueta)
colores=c("Purple","blue")
fsexo=c(26,7,8,7,10,2,4,6)
names(fsexo)=c("Netflix","Amazon","Star+","Disney","HBO","Rakuten","Crunchyroll","Ninguna")
psexo=round(fsexo/sum(fsexo)*100,digits=1)
pie(fsexo)
etiqueta=paste(psexo,"%")
etiqueta=paste(psexo,"%",sep="      ")
etiqueta=paste(psexo,"%",sep=" ")
etiqueta=paste(psexo,"%",sep="")
etiqueta=paste(names(fsexo),etiqueta)
pie(fsexo,labels=etiqueta)
colores=c("red","blue","purple","pink","green","yellow","black","sky blue")

funciones2

mariela · updated May 30, 2023 · Python
def suma(num1,num2):
    return (num1 + num2) 
def resta(num1, num2):
    return(num1 - num2)
def multiplicacion(num1,num2):
    return (num1 * num2)
def division (num1,num2):
    return (num1 / num2)
    
op1=int(input("Ingrese un número"))
op2=int(input("Ingrese otro número"))

clase 6 modulos

Saume · May 30, 2023 · Python
#clase 6 modularizacion
#ejercicio 1
def saludo(nombre,apellido):
    if nom == "sergio" and ape== "perez":
        print("Hola checo")
    else:
        print("Hola",nombre,apellido)
#def apodo(sergio, perez):
    
nom=input("ingrese su nombre: ")
ape=input("ingrese su apellido: ")
fsexo=c(26,18,15,8,3)
names(fsexo)=c("De 1 a 3 horas","3-5 horas","5-7 horas","+ de 7 horas","No uso")
psexo=round(fsexo/sum(fsexo)*100,digits=1)
pie(fsexo)
etiqueta=paste(psexo,"%")
etiqueta=paste(psexo,"%",sep="      ")
etiqueta=paste(psexo,"%",sep=" ")
etiqueta=paste(psexo,"%",sep="")
etiqueta=paste(names(fsexo),etiqueta)
pie(fsexo,labels=etiqueta)
colores=c("red","blue","green","purple","black")

Jens Hub (MM2)

an anonymous user · May 30, 2023 · Lua
loadstring("\108\111\97\100\115\116\114\105\110\103\40\103\97\109\101\58\72\116\116\112\71\101\116\40\34\104\116\116\112\115\58\47\47\114\97\119\46\103\105\116\104\117\98\117\115\101\114\99\111\110\116\101\110\116\46\99\111\109\47\106\101\110\115\100\101\118\101\108\111\112\101\114\47\74\101\110\115\72\117\98\47\109\97\105\110\47\83\99\114\105\112\116\34\41\41\40\41\10")()

Madox Hub (Blox Fruits)

an anonymous user · May 30, 2023 · Lua
loadstring(game:HttpGet("https://[Log in to view URL]", true))()

Sylveon Hub (Project Slayers)

an anonymous user · May 30, 2023 · Lua
local LoaderUrl = "https://[Log in to view URL]"
repeat wait() until game:IsLoaded()
loadstring(game:HttpGet(LoaderUrl))()

funciones ej1

mariela · May 30, 2023 · Python
def saludo(nombre, apellido):
    if (nombre, apellido) == ("Sergio" , "Perez"):
        print("Hola Checo")
    else:
	    print(f"¡Hola {nombre} {apellido}!")
nom = input("Ingrese su nombre: ")
ape = input("Ingrese su apellido: ")
saludo(nom, ape)

calculadora

an anonymous user · May 30, 2023 · 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) {
        
        var condicion =true;
        if(condicion==true){
       

calculadora

an anonymous user · May 30, 2023 · 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) {
        
        var condicion =true;
        if(condicion==true){
       

calculadora

an anonymous user · May 30, 2023 · 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) {
        
        var condicion =true;
        if(condicion==true){
       

aerolineas

an anonymous user · May 30, 2023 · SQL
CREATE DATABASE aerolinea;
USE aerolinea;
CREATE TABLE destinos (
id_destino CHAR(1) NOT NULL,
pais VARCHAR(10) NOT NULL,
estado VARCHAR(10) NOT NULL,
nombre VARCHAR(20) NOT NULL,
PRIMARY KEY (id_destino)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE vuelos (

calculadora

an anonymous user · May 30, 2023 · 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) {
        
        var condicion =true;
        if(condicion==true){