English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Write the code that uses the variable number and converts its values 10, 20, 30 and 40 into the words Ten, Twenty, Thirty, and Forty by printing the correct word on the screen.

2007-01-28 15:51:27 · 2 answers · asked by CR 2 in Computers & Internet Programming & Design

The programming language is C#

2007-01-28 17:36:11 · update #1

2 answers

what computer language are you talking about?

2007-01-28 16:57:41 · answer #1 · answered by cipher 3 · 0 0

put the numbers in an array
put the words how to read them in another array
input a number
check if it is in tne number array
if so, print the corresponding item from the second.

2007-01-29 01:04:56 · answer #2 · answered by iyiogrenci 6 · 0 0

fedest.com, questions and answers