22 ott 2013

javaapplication 2

/*/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javaapplication1;

/**
 *
 * @author USER
 */
public class JavaApplication1 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        int n =1000;
        int v[]= new int[n];
        int valore=10000;
        for(int i=0;i        {v[i]=valore;
        valore++;
        }
        for(int ni=0; ni            if(v[ni]%5==0)
            {
                System.out.println("*"+v[ni]+"*");
            }else{
                System.out.println("elemento i="+ni+":"+v[ni]);

Nessun commento:

Posta un commento