Advertisement
CuteDogAteMineFrog

zadanie 2

Jan 25th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1.  
  2. package com.kurs_java;
  3.  
  4. public class zadanie2 {
  5. public static void main(String[] args){
  6. for (int a=1; a<=1000; a++){
  7. if((a%3==0) && (a%7==0)){
  8. System.out.println(a);
  9. }
  10. }
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement