* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication1;
/**
*
* @author MAJORANA
*/
public class JavaApplication1 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
int m[][]= new int [10][10];
for(int i=0;i
{
for(int j=0;j
{
m[i][j]=(int)(Math.random()*100);
if(m[i][j]%3==0)
{
System.out.print(" * ");
}
else
{
System.out.print(" O ");
}
}
System.out.println(" ");}}}
Nessun commento:
Posta un commento