1int[] nums = newint[5];
2for(int i = 0; i < nums.length; i++){
3 nums[i] = i + 2;
4 System.out.println(nums[i]);
5}
6/*
7 OUTPUT:
8 2 3 4 5 6
9 each time i is increased by 2
10*/
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content