C programs

Showing 81 - 100 of 135 results
In this program, we will write a C program to find the Nth Armstrong number. Problem Statement: We need to...
This C program prints the name of the program and all its command-line arguments. In C programming, command-line arguments allow...
In this C program, we aim to determine the number of elements present in an array. The program takes an...
In programming, it is often necessary to find the number of integers divisible by a certain number. In this program,...
This program adds two binary numbers in the C programming language. Problem Statement Given two binary numbers as input, write...
This C program checks whether a given number is a palindrome or not, where the number is entered by the...
This C program converts an octal number to its equivalent decimal representation. Octal is a base-8 number system that uses...
This C program reverses a given number, where the number is entered by the user. The program then prints the...
In C programming, it is often necessary to check whether a given number is even or odd. An even number...
Introduction This C program calculates the Nth Fibonacci number using recursion. The Fibonacci sequence is a series of numbers in...
This C program converts an octal number to its equivalent binary representation. Converting numbers between different number systems is a...
This C program checks whether a given number is prime or not, where the number is entered by the user....
This C program finds the frequency of a substring in a given string. Problem statement You are required to write...
This C program calculates and displays the position of the highest bit set (most significant bit) for a given integer....
This C program finds the Highest Common Factor (HCF) of two given numbers without using recursion. Problem statement Write a...
This C program finds the Greatest Common Divisor (GCD) and the Least Common Multiple (LCM) of two given numbers. The...
This C program calculates the compound interest for a given principal amount, interest rate, and time period. It utilizes the...
This C program calculates the simple interest based on the principal amount, interest rate, and time period. It applies the...
In this program, we will write a C program to read a file and capitalize the first letter of each...
The Snake Game is a classic video game where the player controls a snake that moves around a grid or...