Click here to Skip to main content
11,430,274 members (71,792 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

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 CPOL
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...

Revisions


  

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

License

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

Share

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...

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