Hello everyone,
Following is the problem as given in the "Programming in C" book in Chapter 6, Pg.94
Code:
Write a program that takes an integer keyed in from the terminal and extracts and displays each digit of the integer in English. So, if the user types in 932, the program should display
nine three two
Remember to display “zero” if the user types in just a 0. (Note: This exercise is a hard one!)
I was able to reach the basic statements but couldnt go further when logic came into the picture.
Code:
#include <stdio.h>
#include <conio.h>
int main ()
{
int number ;
clrscr () ;
printf ("Enter number\n\n") ;
scanf ("%d", &number) ;
I strongly feel that if statements are gonna be used in this case
Plz help