# C Programming Code Examples

## C > Beginners Lab Assignments Code Examples

### check even or odd number using conditional operator

Convert centimeter to meter & kilometer -
C Program Code input Length in centimeter and convert it to meter and kilometer. How to convert length from centimeter to meter and kilometer in C. Input length centimeter

Code calculate determinant of 3x3 Matrix -
C program to read elements in a matrix and find determinant of the given matrix. Find determinant of a 2x2 matrix and 3x3 matrix. Logic to find determinant of a matrix in C.

Check Alphabets by Conditional Operator -
C program code input a character and check whether the character is alphabet or not using Conditional/Ternary operator ?:. How to check alphabets by conditional operator...

Finds Prime Number in C++ The Language -
In C++ coding, we take a 'For Loop' which will start from 1 up to number that has entered to check whether it is Prime Number or not with in for loop we set an 'IF' condition and placed

C++ Codings Store & Display Information -
Program stores the information (name, roll & marks) of 10 students using structures. In this program, a structure, student is created. This structure has three members: name ('string'),

C Program Computes Factorial of number -
The Factorial of a Positive Number n is given by: factorial of n (n!) = 1*2*3*4...n. Factorial of a negative number doesn't exist. And, the factorial of 0 is 1, 0! = 1. The program takes a

Find Intersection & Union of 2 Linked Lists -
This C Program code finds the intersection & union of 2 Linked lists. Intersection is a set of elements that are common in both lists while union is a set of all Unique Elements in both...

C++ Checks Original Equal Reverse or Not -
To check that the original number is equal to its reverse or not in C++, enter the number & reverse that number then check that reverse is equal to "original or not", before reversing