Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Equals
- {
- public static void main (String[] args)
- {
- Scanner input = new Scanner (System.in);
- int[] line = new int[10];
- int counter = 0;
- int v;
- for(int i=0;input.hasNextInt();++i){
- v = input.nextInt();
- line[i] = v;
- for (int j=0; line.length>= j;++j){
- if (counter == line.length){
- ++counter;
- }
- }
- }
- System.out.print( "Iguais:" + counter);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement