C Programming

Showing 41 - 60 of 146 results
This C program calculates the sum of the digits of a given positive integer using recursion. It repeatedly divides the...
This C program calculates the sum of the first N natural numbers using recursion. Problem Statement The program should perform...
This C program converts a binary number to its corresponding Gray code using recursion. Binary Code: Binary code is a...
This C program converts a given number of days into years, months, and remaining days. It uses a function called...
This C program checks whether a given number is a perfect number or not, where the number is entered by...
In this C program, we will write a function to increment each digit of a given integer by 1. We...
This C program calculates the area of a triangle using the formula: area = 0.5 * base * height. Problem...
This C program provides an introduction that states it is a C program to print environment variables. The problem statement...
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...
This C program calculates the factorial of a given number using recursion. Problem Statement The program asks the user to...
In programming, it is often necessary to find the largest number among a given set of numbers. In this program,...
This C program demonstrates how to delete a specific line from a file. It takes the filename and the line...
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 takes the name of an input file as user input and converts its content to lowercase. The...