# C Programming Code Examples

## C > Functions Code Examples

### Program to multiply two numbers using function

Program to Accept the Height of a Person -
Take the height of a person as input and store it in the variable height. If the variable height is lesser than 150 cm, then print the output as "Dwarf". If the variable height is lesser than...

C++ Codes Linear Congruential Generator -
C++ Program to "generate random numbers" using Linear Congruential Generator. A linear congruential generator (LCG) is an algorithm that yields a sequence of pseudo-randomized

Code Checks Even or Odd using Functions -
Program input a number from user and check whether given number is Even or Odd using functions. Declare function to find even odd. First give a meaningful name to our function,

C Language Coding Prints Fibonacci Series -
Program to Fibonacci Series. Fibonacci Series generates subsequent number by adding two previous numbers and Fibonacci Series starts from 2 numbers F0 & F1. The initial values of

Perform Particular Operation two Number -
To perform 'addition', 'subtraction', 'division' and 'multiplication' of any 2 numbers in C++, enter the 2 number and enter the operator to perform the particular math operation (+, -, *

C++ Codings Delete Words from Sentence -
To 'delete particular words' from the string or sentence in C++ language, enter the string or sentence, and then enter the 'word to delete' all the given/entered word from the sentence

C Programming Language Mode Program -
C In Statistics Maths, a mode is a value that occurs the highest numbers of time. Example assume a set of values 8, 5, 4, 7, 8. mode of this value set is 8 as it appears more than any

Displays Nodes of a Linked List in Reverse -
C Program uses recursive function & reverses the nodes in a linked list and displays the list. Linked list is an ordered set of data elements, each containing a link to its successor. Code