Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Ex5Teil6 {
- public static void main(String[] args) {
- Scanner input = new Scanner(System.in);
- int N = input.nextInt();
- long result=0;
- for (int i=0;i<N;i++) {
- result=(i-1)+i;
- System.out.printf(" %d " ,result);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement