All pastes #413293 Raw Edit

Untitled

public java v1 · immutable
#413293 ·published 2007-03-28 09:21 UTC
rendered paste body
import java.io.*;public class Ex98{    public static void main(String args[])    {            try            {        int x[] = new int[10];        for (int cont = 0, z = 0; cont<10; cont++)        {            System.out.print("Digite o "+(cont+1)+"o inteiro: ");            BufferedReader num;            num = new BufferedReader (new InputStreamReader(System.in));            x[cont] = Integer.parseInt(num.readLine());            System.out.println();            z += x[cont];            if (cont==9)            {            System.out.println("O que vc recebe ao lado? "+z/10);            int y = 0; cont = 0;            while (cont<10)            {            if (x[cont]>z/10)            y++;            cont++;            }            System.out.println(y+" o que diz y?");        }    }} // try            catch (Exception e)                {                System.out.println("Erro.");                }}}