Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args)
- {
- Scanner scan = new Scanner(System.in);
- int[] arr = new int[100];
- int[] bestArr;
- int ii=0;
- for(;scan.hasNext("\n");)
- {
- scan.nextInt(arr[ii]);
- ii++;
- }
- int f = ii;
- System.out.println(f);
- //Смори, вот до этого момента я писал. Переменная нихуя не выдирается из цикла, f=0;
- int c = 0;
- for(int i=1; i<10; i++)
- {
- c=5+i;
- }
- int d=c+5;
- System.out.println(d);
- //Вот эта копипаста из интернета. Я в упор не вижу разницы, но значение с в ней выходит из цикла, и d равен не пяти, а 19. Какого хуя?
Advertisement
Add Comment
Please, Sign In to add comment