so for i have this code but i dont know how ot make it say 99.99 = ninty nine
point ninty nine
when i input it
#include<stdio.h>
#include<string.h>
#include<iostream.h>
int digit;
int main(void)
{
printf("Please enter a number between 0 and 99.99: \n");
scanf("%d");
switch(digit)
{
case 0: printf("Zero");
break;
case 1: printf("One");
break;
case 2: printf("Two");
break;
case 3: printf("Three");
break;
case 4:printf("Four");
break;
case 5:printf("Five");
break;
case 6:printf("Six");
break;
case 7:printf("Seven");
break;
case 8:printf("Eight");
break;
case 9:printf("Nine");
break;
case 11:printf("Ten");
break;
case 12:printf("Three");
break;
default: printf("Just a Test");
printf("%d \n", digit);
}
}
Robert Ryan <[EMAIL PROTECTED]> wrote:
what code do you have now
bob
"suge.knight" <[EMAIL PROTECTED]> wrote: I need to type a number and it prints
out in words
for example if i type:
99.99 it will print
ninty-nine point nine
i need to know what do i need ot do that
---------------------------------
Building a website is a piece of cake.
Yahoo! Small Business gives you all the tools to get online.
[Non-text portions of this message have been removed]
---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
Play Sims Stories at Yahoo! Games.
[Non-text portions of this message have been removed]