Advertisement
DanikYakush

Task12

Jul 4th, 2022
703
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Task12 {
  4.     public static void main(String[] args) {
  5.         int res = 1;
  6.         int n;
  7.         Scanner in = new Scanner(System.in);
  8.         n = in.nextInt();
  9.         while(res != n){
  10.             res++;
  11.         }
  12.         System.out.println(res);
  13.     }
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement