Thursday, July 30, 2009

Turbo c computer programming??

can anyone help me with this:


how do you check for the hundreds place of a number???


how do you do this:


make a program that would right the numerical input into words. example:


input: 250


output: two hundred fifty


...


if you can provide a link the better

Turbo c computer programming??
May be you can contact a C expert. Check websites like http://askexpert.info/
Reply:use % (mode symbol) and / (integer division) symbol


for finding hundreds place of a number.








use arrays for the second part.
Reply:This should be pretty easy to do.





You can easily do it with a while loop and a lookup table, and stack your results because they will come out in the reverse order.





Assume you have a short variable (16-bits).


short number;





while(number)


{


printf("%d", number % 10); //BASE 10


number /= 10;


}





This will print the number reversed for you.
Reply:look dear , to write the program, no body having time like it but i am suggesting you about the logic, so for it consider the array of character types.......then implements your logic if having problems so just go thorugh the url given below and post the query in site mention id ....


http://www.commediait.com


No comments:

Post a Comment