C Program to convert number to words.

Problem Statement Write a C program to convert a number into words. For example, an input of 4562 should print four thousand five hundred sixty two. This program handles numbers from 0 up to 99999. The Approach First we count the total number of digits by repeatedly dividing by 10. Then we walk through each …

C program to merge two arrays.

Arrays in C. Write a C program to merge two arrays.In this program we check the elements of arrays A, B and put that elements in the resulted array C in sorted manner.Read more about C Programming Language . and read the C Programming Language (2nd Edition). by K and R. /************************************************************ You can use …

C Program to find day of birth from DOB

Problem Statement Write a C program to find the day of the week from a date of birth. For example, given 02/04/2017 (2nd April 2017), the program should tell you it was a Sunday. The Approach Pick a base year whose January 1st is a known weekday. We use 1900 (Jan 1, 1900 was a …

C program to print all the possible permutations of given digits

Write a C program to print all the possible permutations of given digits.Permutations means possible way of rearranging in the group or set in the particular order.Example:Input:1, 2, 3 Output:1 2 3, 1 3 2, 2 1 3, 3 1 2, 2 3 1, 3 2 1Read more about C Programming Language . and read …

C Program to toss a coin using random function.

Write a c program to toss a coin using random function.In this Program,We use the rand()%2 function that will compute random integers 0 or 1.Read more about C Programming Language . and read the C Programming Language (2nd Edition). by K and R. /************************************************************ You can use all the programs on www.c-program-example.com* for personal and …

C program to demonstrate assert macro.

Write a C program to demonstrate assert macro.assert macro defined in assert.h library. assert is mainly used for debugging. assert function checks the conditions at run time, and program executes only if the assert is true otherwise program aborts and shows the error message.Read more about C Programming Language . and read the C Programming …