Conversion of Binary to Decimal using Recursion
Introduction In the binary numbering system, each digit (bit) represents a power of 2. The rightmost bit is the least significant bit (2^0), and each bit to the left represents…
Conversion of Roman Numbers into Decimal
Introduction: This C program converts Roman numerals into their decimal equivalents. Roman numerals are a numeral system originating from ancient Rome, employing combinations of letters from the Latin alphabet (I,…
Conversion of Lowercase to Uppercase and Vice Versa
Introduction: This C program is designed to convert the case of letters in a string provided by the user. It reads a string input and transforms all lowercase letters to…
Compare Two Strings
Introduction: This C program is designed to compare two strings inputted by the user. It checks for equality and determines the lexicographical order of the strings. The program uses a…
Concatenate Two Strings in One
Introduction:This C program concatenates two strings provided by the user. It reads two separate strings and combines them into a single string while demonstrating fundamental string manipulation techniques. String concatenation…
Find Power of a Number using Recursion
Introduction: This C program calculates the power of a number using a recursive function. By accepting a base and an exponent from the user, the program computes the result of…
Find Factorial of a Number using Recursion
Introduction: This C program calculates the factorial of a non-negative integer using a recursive function. Factorial, denoted as n!n!n!, is the product of all positive integers up to nnn. This…
Solving Tower of Hanoi (defined sequence of moves)
Introduction The Tower of Hanoi is a classic problem in mathematics and computer science that demonstrates the principles of recursion. The puzzle consists of three pegs and a number of…
Find Length of a String
Introduction: This C program calculates the length of a string provided by the user. Unlike the built-in strlen function, this program manually counts the number of characters in the string…
Fibonacci Series of ‘n’ Terms using Recursion
Introduction The Fibonacci series is a well-known sequence of numbers where each number is the sum of the two preceding numbers, starting from 0 and 1. The sequence is defined…