Thread: count the letters in each number between 1 and 1000 inclusive

  1. #31
    Registered User
    Join Date
    Feb 2019
    Posts
    1,078
    Quote Originally Posted by Salem View Post
    It's commas all the way, except for the final and.
    Eg
    Twenty two million, three hundred and forty thousand, nine hundred and seventy six.
    All the way? "Twenty two million, three hundred and forty thousand, nine hundred and seventy six".
    And 1012? "One thousand and twelve" (no commas)...?

  2. #32
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Meh, ignore that last comment of mine.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to count number of spaces, certain letters, etc. in strings?
    By blindchicken11 in forum C Programming
    Replies: 2
    Last Post: 11-29-2011, 04:31 PM
  2. Count number of letters...
    By sponi in forum C Programming
    Replies: 24
    Last Post: 09-14-2011, 10:30 PM
  3. Count Number of Letters in a Word
    By quiksand in forum C Programming
    Replies: 10
    Last Post: 05-14-2010, 11:44 PM
  4. Count number of letters and numbers in a file
    By jtullo in forum C Programming
    Replies: 2
    Last Post: 04-21-2008, 01:33 AM
  5. Count the letters of a string.
    By blackjs in forum C++ Programming
    Replies: 1
    Last Post: 10-17-2001, 10:15 PM

Tags for this Thread