22.02.2016 Views

Operadores y tipos de variables

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

int[ ] numero<strong>de</strong>coches = new<br />

int[24];<br />

int a, b;<br />

int r;<br />

a = 8;<br />

b = 4;<br />

r = a / b;<br />

numero<strong>de</strong>coches[r] = 23;<br />

System.out.print("El número <strong>de</strong><br />

coches en la hora "+r+" fue "+<br />

numero<strong>de</strong>coches[r]);

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!