Click here to Skip to main content
12,450,981 members (55,486 online)
Click here to Skip to main content

Tagged as

Stats

0 views
Posted

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

You may also be interested in...

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