From aa36797859845b51070fc275290b390b282c6468 Mon Sep 17 00:00:00 2001 From: Dyutiraditya Patri <114755706+Dyutiraditya@users.noreply.github.com> Date: Wed, 4 Oct 2023 16:08:32 +0530 Subject: [PATCH] Create Print1to100withoutusingnumbers.java --- Print1to100withoutusingnumbers.java | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Print1to100withoutusingnumbers.java diff --git a/Print1to100withoutusingnumbers.java b/Print1to100withoutusingnumbers.java new file mode 100644 index 00000000..6ab47bc8 --- /dev/null +++ b/Print1to100withoutusingnumbers.java @@ -0,0 +1,24 @@ +// Github username: Dyutiraditya +// Aim: Print 1 to 100 without using numbers +// Date: 4 - 10 - 2023 + +public class PrintNumbersWithoutNumbers { + public static void main(String[] args) { + String[] numbers = { + "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", + "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen", "Nineteen", "Twenty", + "Twenty-One", "Twenty-Two", "Twenty-Three", "Twenty-Four", "Twenty-Five", "Twenty-Six", "Twenty-Seven", "Twenty-Eight", "Twenty-Nine", "Thirty", + "Thirty-One", "Thirty-Two", "Thirty-Three", "Thirty-Four", "Thirty-Five", "Thirty-Six", "Thirty-Seven", "Thirty-Eight", "Thirty-Nine", "Forty", + "Forty-One", "Forty-Two", "Forty-Three", "Forty-Four", "Forty-Five", "Forty-Six", "Forty-Seven", "Forty-Eight", "Forty-Nine", "Fifty", + "Fifty-One", "Fifty-Two", "Fifty-Three", "Fifty-Four", "Fifty-Five", "Fifty-Six", "Fifty-Seven", "Fifty-Eight", "Fifty-Nine", "Sixty", + "Sixty-One", "Sixty-Two", "Sixty-Three", "Sixty-Four", "Sixty-Five", "Sixty-Six", "Sixty-Seven", "Sixty-Eight", "Sixty-Nine", "Seventy", + "Seventy-One", "Seventy-Two", "Seventy-Three", "Seventy-Four", "Seventy-Five", "Seventy-Six", "Seventy-Seven", "Seventy-Eight", "Seventy-Nine", "Eighty", + "Eighty-One", "Eighty-Two", "Eighty-Three", "Eighty-Four", "Eighty-Five", "Eighty-Six", "Eighty-Seven", "Eighty-Eight", "Eighty-Nine", "Ninety", + "Ninety-One", "Ninety-Two", "Ninety-Three", "Ninety-Four", "Ninety-Five", "Ninety-Six", "Ninety-Seven", "Ninety-Eight", "Ninety-Nine", "One Hundred" + }; + + for (int i = 0; i < numbers.length; i++) { + System.out.println(numbers[i]); + } + } +}