CBSE BOARD XII, asked by rajni4433, 11 months ago

what will be the outuput of the following codes? (Make a dry run). public class for_1 { public static void main() { int m=2; int n=15; for(int i=1; i<5; i++) { m++ --n; System.out.println("m" + m); System.out.println('n" + n); } }}​

Answers

Answered by HrDesi0001
12

Answer:

// file name: Main.java

public class Main {

public static void main(String args[]) {

int arr[] = {10, 20, 30, 40, 50};

for(int i=0; i < arr.length; i++)

{

System.out.print(" " + arr[i]);

}

}

}

Similar questions