Computer Science, asked by princerichard812, 7 months ago

List1=[23,45,12,44,22]
List2=[]
From the above list find the elements that are exactly divisible by 3
And put it in another list namely list 2​

Answers

Answered by Anonymous
2

 \large  \square \square \square {\red {your \: answer}} \square \square \square \\  | | | | | | | | | | |

sorry I don't know which programming language you are asking

Java:

class brainly

{

public static void main (string [] args)

{

int l1[] = {23,45,12,44,22}; //list 1

int l2{}={0,0,0,0,0}; // list 2

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

{

if( (l1[i] ÷ 3) == 1)

l2[i] = l1[i1];

system.out.println(l1[i]);

}

}

}

Similar questions