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
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
English,
4 months ago
Social Sciences,
4 months ago
Accountancy,
4 months ago
Math,
9 months ago
Environmental Sciences,
9 months ago
Geography,
1 year ago
Math,
1 year ago