Computer Science, asked by Narayantunglipu, 9 months ago

WRITE THE OUTPUT.
Question 1
int m[] = {2,4,6,8};
System.out.println(m[1] + " " + m[2]);
Question 2
int a[] ={2,4,6,8,10};
a[0]=23;
a[3]=a[1];
int c= a[0]+a[1];
System.out.println("Sum = "+c);
Question 3
int a[]=new int [5];
a[0]=4; a[1]=8; a[2]=7; a[3]=12; a[4]=3;
System.out.println(a[2+1]);

Answers

Answered by raviranjankumar62
2

Answer:

Question 1

int m[] = {2,4,6,8};

System.out.println(m[1] + " " + m[2]);

Question 2

int a[] ={2,4,6,8,10};

a[0]=23;

a[3]=a[1];

int c= a[0]+a[1];

System.out.println("Sum = "+c);

Question 3

int a[]=new int [5];

a[0]=4; a[1]=8; a[2]=7; a[3]=12; a[4]=3;

System.out.println(a[2+1]); amj, hskkbzk

me ans....... nn

follow me and

10 thank okkk please

Similar questions