Advertisement
veronikaaa86

02. Numbers N...1

Mar 19th, 2022
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. package forLoops;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class P02NumbersN1 {
  6. public static void main(String[] args) {
  7. Scanner scanner = new Scanner(System.in);
  8.  
  9. int n = Integer.parseInt(scanner.nextLine());
  10.  
  11. for (int i = n; i >= 1; i--) {
  12. System.out.println(i);
  13. }
  14. }
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement