Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- int a;
- Scanner in = new Scanner(System.in);
- a = in.nextInt();
- if (a == 1) {
- System.out.println("большой");
- } else if (a == 2) {
- System.out.println("указательный");
- } else if (a == 3) {
- System.out.println("средний");
- } else if (a == 4) {
- System.out.println("безымянный");
- } else if (a == 5) {
- System.out.println("мизинец");
- } else {
- System.out.println("такого не бывает");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement