Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Continuo {
- public static void main(String[] args) {
- Scanner s=new Scanner(System.in);
- int n,i;
- System.out.println("please give me a number");
- n=s.nextInt();
- for ( i=0 ; i<=n ; i++ ) {
- if (i%3==0) {
- continue;
- }
- System.out.print(i + " ");
- }
- System.out.println();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement