public class Solution {
public static void main(String[] args) {
//write your code h
int i=0;
int sum=0;
while(i<100){
i++;
if(i%3==0){
continue;
}
sum=sum+i;
}
System.out.println(sum);
}
}
printing sum of numbers except divisible by 3
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Guadalupe Gagnon
28 October, 16:32
what is your question?
0