write a java program to find the sum of multiples of 3 upto 20 terms using for loop
with steps
pls don't post useless things
pls answer fast
Answers
Answered by
2
Answer:
import java.io.*;
class ABC{
int k; int sum=0;
for (int I=1;I<=20;I++)
{ k=i*3;
s=s+k;
}
System.out.print(s);
}
i think it's right.
pls check by executing this program in bluej .
Similar questions