Answer:
public class num7 {
 public static void main(String[] args) {
 int n =1;
 while(n<200){
 if(n%5==0 && n%7==0){
 System.out.print(n);
 System.out.print(",");
 }
 n++;
 }
 }
}
Step-by-step explanation:
- In Java programming Language
- Create and initialize an int variable (n=1)
- Create a while loop with the condition while (n<200)
- Within the while loop use the modulo operator % to check for divisibility by 5 and 7
- Print the numbers divisible by 5 and 7