# C Programming Code Examples

## C > Mathematics Code Examples

### Program to Calculate Standard Deviation

C Calculates Area of an Equilatral Triangle -
An "Equilateral Triangle" has equal sides (all 3 sides are equal). In order to calculate the area of equilateral triangle, we must know the side of the triangle. This C program would prompt

Find diameter circumference area of circle -
C program code input radius of a circle from user and find diameter, circumference and area of the circle. How to calculate diameter, circumference and area of a circle whose...

C++ Implement Gauss Jordan Elimination -
This method can also be used to find the rank of a matrix, to calculate the determinant of a matrix, to calculate the "inverse" of invertible square matrix. C++ Gauss Jordan Elimination

Code Read & Print Details of 50 Students -
The annual examination is conducted for 50 students for three subjects. Write a program to read the data and determine the following: Total marks obtained by each student. The...

Program Convert Lowercase to Uppercase -
To convert the uppercase string to lowercase string in 'C++', ask to enter a string, now start converting Lowercase to Uppercase by using ASCII values. To convert Lowercase String to

Find Frequency of Each Character in String -
C Program code to 'Count Frequency' of each character in a string Using Loop. There are so many algorithms to Count Frequency of each character. Here I'm explaining the easiest one

C programming Scanf() Format Specifiers -
Read a floating-point value, read a single character, read a decimal integer, read an integer in either decimal, octal, hexadecimal format, read a floating-point number, read a

C++ Codes Finds Sum of Natural Numbers -
The "positive numbers" 1, 2, 3... are known as natural numbers. The program below takes a 'positive integer' from the user and calculates the sum up to the given number. You can find