Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace English_Name_of_Last_Digit
- {
- class Program
- {
- static void Main(string[] args)
- {
- int num = int.Parse(Console.ReadLine());
- int lastDigit = num % 10;
- string[] numbers = { "zero", "one", "two", "tree", "four",
- "five", "six", "seven", "eight", "nine"};
- if(num >= 0 || num <= 9)
- {
- Console.WriteLine(numbers[lastDigit]);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement