Category: C Programs

C program to Convert Number to Words

The program converts given number to individual digits and print words, the program only prints all the digits of a number in just equivalent words, but it is not a meaningful sentence.  Example input: 456 325 -653 Example Output: Four Five Six Three Two Five please enter valid number The invalid numbers are any special …

Start reading C program to Convert Number to Words

C Program to Find Nth Fibonacci Number Using Recursion

include int fib (int);int main (){int n, result;printf (“Enter the Nth Number: “);scanf (“%d”, &n);result = fib (n);printf (“The %dth number in Fibonacci series is %d\n”, n, result);return 0;} /* function for recursive fibonocci call */int fib (int n){if (n == 0){return 0;}else if (n == 1){return 1;}else{return (fib (n – 1) + fib (n …

Start reading C Program to Find Nth Fibonacci Number Using Recursion

C Program for Monthly Bill of a Newspaper

Algorithm for to calculate monthly bill of newspaper Algorithm: Read the number of days. Read the new paper cost. Read the Service charge. if there is a service charge, calculate price using service charge + (no of days* news paper cost) If there is no service charge calculate using, no of days* news paper cost print the …

Start reading C Program for Monthly Bill of a Newspaper