HomePosts tagged โ€œC programsโ€

C programs

Showing 1 - 20 of 135 results
This C program finds the Greatest Common Divisor (GCD) of two given numbers. Problem Statement Write a C program that...
This C program calculates the roots of a quadratic equation of the form ax^2 + bx + c = 0....
This C program allows you to find the length of a linked list, which is the number of nodes present...
This C program finds the first and last occurrence of a target character in a given string and displays their...
In this C program, we will calculate the power of a number using the exponentiation operator. We will take the...
Floydโ€™s Triangle is a triangular number pattern named after Robert Floyd. It is a right-angled triangle where the numbers are...
This C program performs cyclic permutation (rotation) of the elements in an array to the right. Cyclic permutation is an...
This C program calculates the power of a given number raised to a specified exponent using a loop. Problem Statement...
This C program converts a binary number to its octal equivalent. Problem statement The program takes a binary number as...
This C program converts a binary number to its corresponding Gray code using iterative methods. Gray code, also known as...
This C program calculates the value of sin(x) using the Taylor series expansion. The Taylor series expansion is a mathematical...
In this post, you will learn about the C program that takes two strings as input and determines whether they...
In programming, it is often necessary to convert characters from lowercase to uppercase and vice-versa. In this program, we will...
This C program demonstrates addition using bitwise operators. Bitwise operators are efficient for performing arithmetic operations at the binary level....
Intro This C program calculates the volume and surface area of a cylinder using its radius and height. It demonstrates...
This C program calculates the area of a circle using its radius. Problem Statement C Program to Find the Area...
This C program finds the largest and smallest possible words, which are palindromes, from a given input sentence. Problem Statement...
This C program calculates the length of a given string. Problem Statement Write a program that calculates the average of...
This C program calculates the normal and trace of a given matrix. It prompts the user to enter the size...
This C program checks whether a given string is a palindrome or not using recursion. Problem Statement Write a C...