C Programming

Showing 81 - 100 of 146 results
This C program calculates the sum of the first N natural numbers using a for loop. It iterates from 1...
This C program converts a decimal number to its binary representation using recursion. It takes a decimal number as input...
This C program converts a binary number to its octal equivalent. Problem statement The program takes a binary number as...
Introduction This C program prints a diamond pattern based on the number of rows provided by the user. It uses...
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 sum of the digits of a given positive integer using recursion. It repeatedly divides the...
This C program uses recursion to reverse a given number. Recursion is a process in which a function calls itself...
This C program determines whether a given year is a leap year or not. A leap year is a year...
This C program converts time from the 12-hour format (HH:MM AM/PM) to the 24-hour format (HH:MM). It takes the input...
This C program converts a given number of days into years, months, and remaining days. It uses a function called...
This program calculates the factorial of a given number using recursion. Problem statement Given a positive integer, we need to...
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 converts a binary number to its decimal equivalent using the power of 2. It takes a binary...
This C program finds the union and intersection of two arrays. It takes two arrays as input and computes the...
This C program implements the Fizzbuzz problem, a classic programming exercise. It prints numbers from 1 to a given limit,...
This C program calculates the simple interest based on the principal amount, interest rate, and time period. It applies the...
This C program calculates the value of cos(x) using the Taylor series expansion. It takes the value of x as...
This C program calculates the value of nCr (combination) using the formula n! / (r! * (n-r)!). It takes the...
This C program calculates the volume and surface area of a cuboid given its length, width, and height. It utilizes...
This C program calculates the compound interest for a given principal amount, interest rate, and time period. It utilizes the...

Categories

Archives