Toggle navigation
Explora
(current)
Aprende
Crea
Retos
×
Aspectos básicos
void main() {...}
for ( int i = 0 ; i < N ; i++ ) {...}
while (condición) {...}
do {...} while (condición);
if (condición) {...}
if (condición) {...} else {...}
switch (valor) {...}
Mostrar y pedir datos
print()
println()
readInteger()
readDouble()
readChar()
readString()
Funciones matemáticas
abs(n)
log(n)
sqrt(n)
pow(b,e)
floor(n)
ceil(n)
round(n)
sin(n)
cos(n)
tan(n)
asin(n)
acos(n)
atan(n)
random(n)
Funciones gráficas
point(x,y)
line(x1,y1,x2,y2)
ellipse(x,y,w,h)
rect(x,y,w,h)
triangle(x1,y1,x2,y2,x3,y3)
text(msg,x,y)
textWidth(msg)
textSize(n)
background(r,g,b,a)
strokeWeight(n)
stroke(r,g,b,a)
noStroke()
fill(r,g,b,a)
noFill()
image(url, x,y,w,h)
Nuevo
Ayuda
Probar
...
void main(){ background(0,0,0); stroke(255,255,255); textSize(7); int m = readInteger("m? (1<= m <=5)") ; if(m>=1 && m<=5){ int n = readInteger("n? (1<= n <=5)") ; if(n>=1 && n<=5){ int p = readInteger("p? (1<= p <=5)") ; if(p>=1 && p<=5){ int a[][]=new int[m][n]; int b[][]=new int[n][p]; int c[][]=new int[m][p]; println("Producto de las Matrices A("+m+"x"+n+") ? "+"B("+n+"x"+p+")"); int i;int j;int k; for(i=0; i
Canvas not supported.
Programado por
Jesús Hernández Bastida
0 votos
76 descargas
2 usos