C Programming Code Examples
C > Beginners Lab Assignments Code Examples
Finding LCM and GCD
Sum the Integers from 1 to users number -
Sum the integers from 1 to a user-specified number in C programming language. Declare the number of integers to be summed. The loop counter. Sum integers from 1 to count.
Program Code Find Area of Parallelogram -
C program to find area of Parallelogram. This C code Calculates the 'Area of Parallelogram'. The formula used in this c program are Area = b*a where b is the length of any base, a is the
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...
Check Prime, Armstrong, Perfect Number -
C First give a meaningful name to our prime checking function say isPrime() function will check a number for prime. Since our function checks a number for prime condition. Hence
C Display Fibonacci Series Using Recursion -
Program code display 'Fibonacci series' using recursion. Using "fibonacci_series()" that calls itself recursively, in order to display series for the entered number of terms. Program enter
C++ Codes Solve Tower of Hanoi Problem -
C++ program displays the iterative solution to the Tower of Hanoi problem. Tower Of Hanoi consists of 'three rods' and a number of disks of different sizes which can "Slide Onto" any
C++ program for Complex Numbers using -
Class for addition, subtraction, multiplication and division for 'complex numbers'. Class has 4 functions to perform arithmetic operations. It takes 2 "complex numbers" input from user
Checks Character is Uppercase Lowercase -
C program code to input character from user and check whether character is Uppercase or Lowercase alphabet using If Else Statement. Input a character from user. Store it in some