Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Compiled Languages > C   »   c programing tackle

 
Question Tools Search this Question Display Modes
Question
 
 
#1  
Old May 9, 2007, 02:26 AM
muziti
New Member
muziti is offline
 
Join Date: May 2007
Posts: 5
muziti See this member's comment history on his/her Profile page.
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 address].
thank you all
with all the best

Reply With Quote
 
     

Answers
 
 
Old May 10, 2007, 04:53 PM   #2  
Nosnosna
Senior Member
Nosnosna is offline
 
Join Date: Jan 2007
Location: East bumble, TN
Posts: 434
Nosnosna See this member's comment history on his/her Profile page.
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.
  Reply With Quote
 
     
 
 
Old May 10, 2007, 05:29 PM   #3  
muziti
New Member
muziti is offline
 
Join Date: May 2007
Posts: 5
muziti See this member's comment history on his/her Profile page.
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.
thankyou.
  Reply With Quote
 
     
 
 
Old Mar 19, 2008, 06:12 PM   #4  
vikash kumar
New Member
vikash kumar is offline
 
Join Date: Mar 2008
Posts: 3
vikash kumar See this member's comment history on his/her Profile page.
/* 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 );
}
  Reply With Quote
 
     


Question Tools Search this Question
Search this Question:

Advanced Search
Display Modes

 
Similar Sponsors

Similar Questions
Question Asker Topic Answers Last Post
c++ programing compiler Amythest C++ 8 May 15, 2008 09:10 AM
Programing wanderer Computers for Beginners 2 Sep 21, 2007 01:08 AM
Linear Programing ?? harrissj1 Math & Sciences 0 Aug 15, 2006 10:37 AM
i want to learn about programing cmiller0384 Other Programming 11 May 21, 2006 11:52 AM
Regarding JSP programing rashmimanu1@yahoo.co.in Internet & the Web 1 Mar 13, 2006 05:51 AM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 04:50 PM.

Content Relevant URLs by vBSEO 3.0.0 RC6 © 2006, Crawlability, Inc.