Write the output for the following int a[ ] ={20,30,40,50}; for(int i=0; i<4;i++)) { if ( a[i]% 4 ==0) { System.out.print(a[i]+" ");}}
Answers
Answered by
1
Answer:
The output should be 20 40
Explanation:
Hope it helps.
Answered by
0
The output for these statements are :
Output
20
40
Similar questions
English,
4 months ago
Math,
4 months ago
Math,
10 months ago
Math,
1 year ago
Social Sciences,
1 year ago