sunspeak

Untitled

Oct 22nd, 2019
667
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. public static void main(String[] args)
  2. {
  3. Scanner scan = new Scanner(System.in);
  4. int[] arr = new int[100];
  5. int[] bestArr;
  6. int ii=0;
  7. for(;scan.hasNext("\n");)
  8. {
  9.  
  10. scan.nextInt(arr[ii]);
  11. ii++;
  12. }
  13. int f = ii;
  14. System.out.println(f);
  15. //Смори, вот до этого момента я писал. Переменная нихуя не выдирается из цикла, f=0;
  16.  
  17. int c = 0;
  18. for(int i=1; i<10; i++)
  19. {
  20. c=5+i;
  21. }
  22. int d=c+5;
  23. System.out.println(d);
  24. //Вот эта копипаста из интернета. Я в упор не вижу разницы, но значение с в ней выходит из цикла, и d равен не пяти, а 19. Какого хуя?
Advertisement
Add Comment
Please, Sign In to add comment