Computer Science, asked by annyeonghaseyo02, 9 days ago

Please help answer asap

Attachments:

Answers

Answered by mahesh30506
0

Answer:

bro you can write the method by yourself iam just texting the logic okay, hope it helps :D

Explanation:

int sum = 0;// to store sum

for( int i = 5; I<=100;i ++){

if (i%5==0 || i%6==0){

sum = sum+ I;

}

}

System.out.println(sum);

Similar questions