Translate

Labels

Showing posts with label CONVERSION OF INTEGER INTO WORDS. Show all posts
Showing posts with label CONVERSION OF INTEGER INTO WORDS. Show all posts

Monday, 10 June 2013

CONVERSION OF INTEGERS INTO WORDS

#include<stdio.h>
#include<conio.h>
main()
{
char a[10][10]={"one","two","three","four","five","six","seven","eight","nine","ten"};
char b[10][10]={"eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"};
char c[10][10]={"ten","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety","hundred"};
int s,r,t;
long n;
clrscr();
/*Enter the number below one lakh*/
printf("Enter the number:");
scanf("%ld",&n);