Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class Equals
  3. {
  4.     public static void main (String[] args)
  5.     {
  6.         Scanner input = new Scanner (System.in);
  7.         int[] line = new int[10];
  8.         int counter = 0;
  9.         int v;
  10.         for(int i=0;input.hasNextInt();++i){
  11.  
  12.             v = input.nextInt();
  13.        
  14.             line[i] = v;
  15.        
  16.             for (int j=0; line.length>= j;++j){
  17.                 if (counter == line.length){
  18.                     ++counter;
  19.                 }
  20.             }
  21.         }
  22.         System.out.print( "Iguais:" + counter);
  23.     }  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement