SHARE
TWEET

Nums1To9ToText

yovkovbpfps Mar 26th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2.  
  3. public class wae {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.  
  7.         int number = Integer.parseInt(scanner.nextLine());
  8.  
  9.         if (number == 1) {
  10.             System.out.println("one");
  11.         } else if (number == 2) {
  12.             System.out.println("two");
  13.         } else if (number == 3) {
  14.             System.out.println("three");
  15.         } else if (number == 4) {
  16.             System.out.println("four");
  17.         } else if (number == 5) {
  18.             System.out.println("five");
  19.         } else if (number == 6) {
  20.             System.out.println("six");
  21.         } else if (number == 7) {
  22.             System.out.println("seven");
  23.         } else if (number == 8) {
  24.             System.out.println("eight");
  25.         } else if (number == 9) {
  26.             System.out.println("nine");
  27.         } else {
  28.             System.out.println("number too big");
  29.         }
  30.  
  31.     }
  32. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top