Skip to content

Instantly share code, notes, and snippets.

View cold-coder's full-sized avatar
🎯
Focusing

Yao Cheng cold-coder

🎯
Focusing
View GitHub Profile
@cold-coder
cold-coder / main.m
Last active August 29, 2015 13:56
One solution to exercise 6 of Chapter 6 - Making Decision in book <<Programming in Objective-C>>
//
// 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.