Click here to Skip to main content
13,045,540 members (69,546 online)
Click here to Skip to main content

Tagged as


Posted 15 Nov 2012

how to print string, if i input "1" then print "One", if i input "15" then print "fifteen", if i input "123" then print "one hundred and twenty-three "

, 15 Nov 2012
If you want to "show" it in a Console so just use:string Number = Console.readLine();and then some if-questions like:if(Number.Equals("1")){Console.WriteLine("one")}if(Number.Equals("123")){Console.WriteLine("onehundreed and twenty-three")}or with a switch case...



Compare Revision Minor Date Status Editor
3 - publicly available No 15-Nov-12 22:03 Available David Goebet
Updates in content. 19 changes had been made.
2 No 15-Nov-12 21:58 Available ridoy
code tag added
1 No 15-Nov-12 21:54 Available David Goebet


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

David Goebet
Software Developer (Junior) Eplass PC GmbH
Germany Germany
A young (23) man who wants to change the world

... but sadly theres no api provided...

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170713.1 | Last Updated 16 Nov 2012
Article Copyright 2012 by David Goebet
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid