Entradas

Mostrando entradas de junio, 2024

Lista Decremental Z números enteros

import java.lang.*; import java.io.*; import java.util.*; /** * class PuntoEnX here. * * @author (Amalio) * @version (PX_v1) */ public class ListInvNumEnt{ // instance variables private static int z; /* * Constructor for objects of class PuntoEnX */ public ListInvNumEnt(){ /*initialise instance variables en el origen de coordenadas*/ this.z = 0; } /* * Constructor for objects of class PuntoEnX */ public ListInvNumEnt(int z){ /*initialise instance variables*/ this.z = z; } /* * An example of a method - replace this comment with your own * * @param y a sample parameter for a method * @return the sum of x and y */ public static int listInvNumEnt(int z){ /* put your code here*/ int devuelve = z; for(devuelve = z; devuelve 0; i--){ String l ="|"; System.out.print((z--)+"|...

Repetir un numero de enteros

import java.lang.*; import java.io.*; import java.util.*; /** * class PuntoEnX here. * * @author (Amalio) * @version (PX_v1) */ public class NumEnt{ // instance variables private static int z; /* * Constructor for objects of class PuntoEnX */ public NumEnt(){ /*initialise instance variables en el origen de coordenadas*/ this.z = 0; } /* * Constructor for objects of class PuntoEnX */ public NumEnt(int z){ /*initialise instance variables*/ this.z = z; } /* * An example of a method - replace this comment with your own * * @param y a sample parameter for a method * @return the sum of x and y */ public static int repNumEnt(int y){ /* put your code here*/ int devuelve = 0; for(devuelve=0;devuelve

ListaIncremental Z NumerosEnteros

import java.lang.*; import java.io.*; import java.util.*; /** * class PuntoEnX here. * * @author (Amalio) * @version (PX_v1) */ public class PuntoNumEnt{ // instance variables private static int z; /* * Constructor for objects of class PuntoEnX */ public PuntoNumEnt(){ /*initialise instance variables en el origen de coordenadas*/ this.z = 0; } /* * Constructor for objects of class PuntoEnX */ public PuntoNumEnt(int z){ /*initialise instance variables*/ this.z = z; } /* * An example of a method - replace this comment with your own * * @param y a sample parameter for a method * @return the sum of x and y */ public static int sumaNumEnt(int y){ /* put your code here*/ int devuelve = 0; for(devuelve=0;devuelve