This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // main.m | |
| // this is one solution to exercise 6 of Chapter 6 - Making Decision in book <Programming in Objective-C> | |
| // | |
| //ex6. Write a program that takes an integer keyed in from the terminal and extracts and displays each digit of the integer in English. So if the user types in 932, the program should display the following: | |
| //nine three two | |
| //(Remember to display zero if the user types in just 0.) Note: This exercise is a hard one! | |
| // | |
| // Created by yaocheng on 14-2-5. | |
| // Copyright (c) 2014年 yaocheng. All rights reserved. |
NewerOlder