Advertisement
Guest User

Untitled

a guest
Sep 9th, 2014
699
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class Ex5Teil6 {
  3.  
  4. public static void main(String[] args) {
  5. Scanner input = new Scanner(System.in);
  6. int N = input.nextInt();
  7. long result=0;
  8. for (int i=0;i<N;i++) {
  9. result=(i-1)+i;
  10. System.out.printf(" %d " ,result);
  11.  
  12.  
  13. }
  14. }
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement