SHARE
TWEET

לא קפולות של 3

a guest Aug 17th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2.  
  3. public class Continuo {
  4.     public static void main(String[] args) {
  5.         Scanner s=new Scanner(System.in);
  6.         int n,i;
  7.         System.out.println("please give me a number");
  8.         n=s.nextInt();
  9.         for ( i=0 ; i<=n ; i++ )    {
  10.             if (i%3==0) {
  11.                 continue;
  12.             }
  13.             System.out.print(i + " ");
  14.         }
  15.         System.out.println();
  16.     }
  17.  
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top