# C Programming Code Examples

## C > Mathematics Code Examples

### Program to Find the volume and surface area of cone

Program to Converts Celsius to Fahrenheit - Fahrenheit & Celsius are two unit for measure temperature. Formula to convert "Celsius" to Fahrenheit using this formula you can change temperature fahrenheit to celsius. Use temp

Find Maximum Between 2 Numbers If Else - Finding maximum in general is comparison of two numbers. In C programming we compare 2 quantities using relational operator. We can write expression to find maximum between j1

Simple Program for Inline Functions Using - An "Inline Function" is a function upon which the compiler has been requested to perform inline expansion. programmer has requested that the compiler insert the complete body of

Concatenate Two Strings strcat() Function - C program code 'Concatenate 2 strings' using strcat() library function. Logic to concatenate 2 strings in C Programming. Enter first string, enter second string and Concatenate str1 str2

C Find Power of a number using Recursion - First give a meaningful name to our recursive function say pow(). The function must accept 2 numbers i.e. base. exponent and calculate its power. Hence, take 2 parameters for base

C Program Codes Calculates Electricity Bill - Program to find electricity bill using if else in C. Input unit consumed by customer in some variable say unit and if unit consumed less or equal to 50 units. Then amt = unit * 0.50. Unit

C Check if the Matrix is an Identity Matrix - C code checks a given Matrix is an Identity Matrix. Identity matrix is a square matrix with 1's along the diagonal from upper left to lower right and 0's in all other positions. If it

Performs LU Decomposition of any Matrix - C++ Program perform LU Decomposition of a matrix. LU decomposition factors a matrix as the product of a Lower Triangular Matrix and an upper 'triangular matrix'. Code sometimes