Ask Experts Questions for FREE Help !
Ask
    muziti's Avatar
    muziti Posts: 5, Reputation: 1
    New Member
     
    #1

    May 9, 2007, 03:26 AM
    c programing tackle
    hello all

    I was thinking of a program that converts the integer you entered into
    english alphabet
    for example if a user types 1234
    then the out put should be one two three four;
    but the number of digits to be entered should not be fixed any digit integer
    if you solve this problem send a message to my mail address
    [email protected].
    thank you all
    with all the best
    Nosnosna's Avatar
    Nosnosna Posts: 434, Reputation: 103
    Full Member
     
    #2

    May 10, 2007, 01:53 PM
    This is a simple program to create:

    First, convert the input integer to a string (or take the input as a string instead of an integer)

    Iterate through the characters in the string, and for each one, replace it with the english equivalent, using whatever control structure you prefer. The only limit to the number of digits you can do in this method is the maximum length of a string, which is unlikely to be a problem.
    muziti's Avatar
    muziti Posts: 5, Reputation: 1
    New Member
     
    #3

    May 10, 2007, 02:29 PM
    Quote Originally Posted by Nosnosna
    This is a simple program to create:

    First, convert the input integer to a string (or take the input as a string instead of an integer)

    "Iterate "through the characters in the string, and for each one, replace it with the english equivalent, using whatever control structure you prefer. The only limit to the number of digits you can do in this method is the maximum length of a string, which is unlikely to be a problem.
    Can u show me the steps to do this and send it to my mail.
    Thank you.
    vikash kumar's Avatar
    vikash kumar Posts: 3, Reputation: 1
    New Member
     
    #4

    Mar 19, 2008, 03:12 PM
    /* convert a string to an integer */
    #include <stdio.h>
    #include <stdlib.h>

    char string[] = "1234";

    main()
    {
    int sum;
    sum = atoi( string );
    printf("Sum = %d\n", sum );
    }

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

C++ programing compiler [ 8 Answers ]

Does anyone know where I can find a free or really cheap programin g compiler?

Programing [ 2 Answers ]

Hey Could someone please give me a name of a site that explains in depthly how to make your own computer program on windows me or could some very nice person explain it to me in extrem depth how to make your own program? Much apperciated

I want to learn about programing [ 11 Answers ]

I'm somewhat of a computer geek and I want my knowledge to increase this site helps a lot but I want to learn about programing, is there anybooks for beginners like me that will get me started

Regarding JSP programing [ 1 Answers ]

Sir,I have written one program in jsp for userlogin and password checking.It makes msaccess connectivity. It also extracts the data.But what ever the in the database,it is extracting. But I am going to give the username and password from outside,it should give username and password is not valid....


View more questions Search