# C Programming Code Examples

## C > Beginners Lab Assignments Code Examples

### C program to calculate Simple Interest

C++ Language Implement Multiset in STL -
C++ Program demonstrates implementation of "Multiset in STL". "Insert element" into the multiset. "Delete element" from the multiset. "Find element" in a multiset. Count elements

C Codings to HCF Highest Common Factor -
Program to Find HCF In C language. An H.C.F or Highest Common Factor, largest common factor of two or more values. For example 12 > 1, 2, 3, 4, 6, 12 and 18 > 1, 2, 4, 8, 18. HCF=4

Code Find Maximum Between 2 Numbers -
C program code to input two numbers and find maximum between two numbers using conditional/ternary operator ?:. How to find maximum minimum between two numbers

C++ Sample Calculate Power of a Number -
Program takes two numbers (a 'base number' and an 'exponent') and Calculates the Power. The technique works only if the exponent is a positive integer. If you need to find the power

Convert Octal to Decimal Number System -
Program to input Octal number and convert to Decimal number. Octal number system is a base 8 number system. Octal number system uses 8 symbols to represent all its numbers...

C++ Table Show the legal values for Mode -
Open a text file for reading. Create a text file for writing. Append to a text file and Open a binary file for reading. Create a binary file for writing. Append to a binary file. Open a text

C++ Finding Transitive Closure of a Graph -
Displaying the 'transitive closure matrix' of a graph. The reachability of a particular node 'i' towards all node pairs ('i','j') is known as the transitive closure of a graph. So this matrix is

C Count Trailing Zeros in a Binary Number -
C language input any number from user and count number of trailing zeros in the given number using bitwise operator. How to find total number of trailing zeros in any given...