C programs

Showing 41 - 60 of 135 results
This C program checks whether a given number is a perfect number or not, where the number is entered by...
This C program calculates the area of a triangle using the formula: area = 0.5 * base * height. Problem...
In programming, it is often necessary to check whether a number is positive or negative. In this program, we will...
This C program calculates the volume and surface area of a cuboid given its length, width, and height. It utilizes...
This C program finds the Highest Common Factor (HCF) of two given numbers using recursion. Problem Statement Write a C...
This C program converts a decimal number to its equivalent octal representation. Problem statement You need to convert a decimal...
This C program checks whether a given number is a strong number or not, where the number is entered by...
In programming, it is often necessary to find the largest number among a given set of numbers. In this program,...
This C program counts the number of unique words in a given string. It tokenizes the input string, converts it...
In programming, it is often necessary to print the multiplication table of a given number. In this program, we will...
This C program converts a hexadecimal number to its binary representation. It takes a hexadecimal number as input and produces...
This C program demonstrates how to reverse a stack using recursion. A stack is a linear data structure that follows...
This C program checks whether a given number is an Armstrong number or not, where the number is entered by...
This C program calculates and displays the transpose of a given matrix. The transpose of a matrix is obtained by...
Tic Tac Toe is a classic paper-and-pencil game played on a 3ร—3 grid. The objective of the game is to...
The strpbrk() function is a standard library function in the C programming language that is used to search for the...
This C program solves the Magic Squares puzzle, a mathematical challenge where a square matrix is filled with distinct positive...
This C program prints Pascalโ€™s triangle based on the number of rows entered by the user. Pascalโ€™s triangle is a...
This C program first introduces itself as a โ€œFahrenheit to Celsius Converterโ€. It then provides a brief problem statement, explaining...
This C program calculates the determinant of a square matrix provided by the user. Problem statement Given a square matrix...