C Programming Code Examples
C > For Loops and While Loops Code Examples
program to find HCF (GCD) of two numbers
Code Finds product of Digits of a Number -
C program code input a number and calculate product of its digits. I have divided the logic to calculate product of digits in three steps. Extract last digit of the number. Multiply the
Code Copy its Input to its Output Replace -
Program sample to copy its input to its output replacing string of one or more blanks by a single blank. String will be terminated if you press ENTER. Press Ctrl-Z & then ENTER
Calculates the Mean Variance & Deviation -
This C Program calculates the mean, variance and standard deviation. The formula which is used in this c program are mean = average of the numbers. var=(summation( ( Xj - average
Volumes & Areas of geometric shapes in c -
C program coding to calculate area, volume, perimeter of a particular geometric shape. Square, rectangle, circle, triangle, rhombus, parallelogram, trapezium, quadrilateral,...
C Check the Number is Armstrong number -
C Program to input a number from user and check whether given number is Armstrong number or not. Armstrong number is n-digit number that is equal to the sum of the nth...
The C Programming Pointers & 2D Arrays -
As we know that the one "Dimensional Array" name works as a pointer to the base element of the Array. However in the case "2D Arrays" the logic is slightly different. You can consider
C Trim Leading White Spaces from Strings -
Program Trim leading white space characters from a string. Remove "Leading Whitespace" characters from the string. Find Last index of whitespace character. White space character
Program Finds the Longest Path in a DAG -
Program to find longest path in DAG. Given a weighted directed acyclic graph and a source vertex s in it, find the longest distances from s to all other vertices in the given graph. Create