This is a discussion on Please Help A Noob Here (plz Im Begging You) within the C Programming forums, part of the General Programming Boards category; marvix or whatever your nick is, this thread is too big and i cant bother to read it all, just ...

1. marvix or whatever your nick is, this thread is too big and i cant bother to read it all, just paste your problem here again what do u need etc and if i could help i will and take a bath with some cold water as that will help and result in better programing haha just kiding
im waiting for u to post ur problem here again ok cya

2. Just make a flowchart out of what you have... -_-
People have already given you a solution. Break it down, understand it, make it into a flowchart.
Then make changes to your chart and translate it into code again.

3. but so far my format is like this
Code:
```{
if ((year/1000)==3)
{ printf("thirty");}

if ((year/1000)==4)
{printf("forty");}

if ((year/1000)==5)
{printf("fifty");}

if ((year/1000)==6)
{printf("sixty");}

if ((year/1000)==7)
{printf("seventy");}

if ((year/1000)==8)
{printf("eighty");}

if ((year/1000)==9)
{printf("ninety");}

if (((year%1000)/100)==3)
{
printf("three hundrend");
}
if (((year%100)/10)==2)
{
printf("and twenty");
}
if ((year%10)==1)
{
printf("one\n");
}
}```
how do i break into hundreds?

4. I repeat:
Originally Posted by Elysia
Just make a flowchart out of what you have... -_-
People have already given you a solution. Break it down, understand it, make it into a flowchart.
Then make changes to your chart and translate it into code again.

5. how do i break into hundreds?
As I noted earlier, I suggested something along these lines instead:
Code:
```century = year / 100;

if ((century / 10) == 1)
{
/* Handle 1000s to 1900s. */
if (century == 10)
{
/* Print "ten". */
}
else if (century == 11)
{
/* Print "eleven". */
}
/* 12 ... 18 */
else
{
/* Print "nineteen". */
}
}
else if (century > 0)
{
/* Handle the thousands place. */
int num = century / 10;
if (num == 2)
{
/* Print "twenty". */
}
else if (num == 3)
{
/* Print "thirty". */
}
/* 4 ... 8 */
else if (num == 9)
{
/* Print "ninety". */
}

/* Handle the hundreds place. */
num = century &#37; 10;
if (num == 1)
{
/* Print "one". */
}
else if (num == 2)
{
/* Print "two". */
}
/* 3 .. 8 */
else if (num == 9)
{
/* Print "nine". */
}
}

/* Remember to print "hundred". */```
Notice that when you want to handle the decade, pretty much the same code applies, so you may be able to just copy it with some minor editing.

6. Originally Posted by lolol
marvix or whatever your nick is, this thread is too big and i cant bother to read it all, just paste your problem here again what do u need etc and if i could help i will and take a bath with some cold water as that will help and result in better programing haha just kiding
im waiting for u to post ur problem here again ok cya
hi lol...lol,
ah yes, a prettly long thread!!! however, this thread was not started by me
if you really care to know the problem statement, you could go to the first post of this thread ;-)

cheers
maverix

7. Originally Posted by bobbie18
how do i break into hundreds?
you've been answered on this a number of times.
Code:
`hundreds = number/100;             // for 1782, you'll get 17`
cheers
maverix

8. thx a lot for the replies guys
........ internet from down under...
didnt c the answers until now

Page 7 of 7 First 1234567
Popular pages Recent additions