C programs

Showing 101 - 120 of 135 results
This program calculates the factorial of a given number using recursion. Problem statement Given a positive integer, we need to...
This C program implements the Fizzbuzz problem, a classic programming exercise. It prints numbers from 1 to a given limit,...
This program prints all Armstrong numbers between 1 and 100 in the C programming language. Problem Statement Given a range...
In this program, we will write a C program to find the sum of each row and column of a...
This program calculates the sum of the first n natural numbers using recursion in the C programming language. Problem Statement...
This C program finds the first N Fibonacci numbers and displays them. Problem statement Write a C program to find...
This C program calculates the sum of the cos(x) series for a given angle and number of terms. It provides...
This C program calculates and displays the upper triangular matrix of a given square matrix. An upper triangular matrix is...
This C program demonstrates how to replace a specific line in a text file. Text file manipulation is a common...
This C program checks if a specific bit position in an integer is set to one or not. In binary...
In C programming, comparing two numbers to check if they are equal is a basic operation. In this program, we...
This C program implements an adjacency matrix for a graph. An adjacency matrix is a two-dimensional array where each element...
In this C program, we will be adding two complex numbers. A complex number consists of a real part and...
This C program converts decimal numbers to Roman numerals using a function called convertToRoman. It takes user input, checks if...
This C program compares two strings entered by the user and determines their relationship based on lexicographical order. Problem statement...
This C program finds all prime numbers in a given range. It prompts the user to enter the starting and...
This C program checks whether a given number is a palindrome or not. What is a Palindrome? A palindrome is...
This C program finds the sum of the first N natural numbers, where N is entered by the user. The...
This C program checks whether a given number is prime or not using a recursive approach. A prime number is...
The C program provided is designed to count the number of lines in a text file. It prompts the user...