Internship Program
(Problem Solving with C)
Assignments
Assignment -4
● Find the power of any number using recursion.
● Print all natural numbers between 1 to n using recursion.
● Print all even or odd numbers in given range using
recursion.
● Sum of all natural numbers between 1 to n using
recursion.
● Find the sum of all even or odd numbers in a given range
using recursion.
● Find reverse of any number using recursion.
● Check whether a number is a palindrome or not using
recursion.
● Find highest frequency character in a string.
● Find lowest frequency character in a string.
● Count frequency of each character in a string.
● Remove the first occurrence of a character from a string.
● Remove the last occurrence of a character from a string.
● Delete all occurrences of a character from a string.
● Remove all repeated characters from a given string.
● Replace the first occurrence of a character with another in a
string.
● Replace the last occurrence of a character with another in a
string.
● Put all occurrences of a character with another in a string.
● Removing brackets from an algebraic expression
● Remove characters in a string except alphabets
● Remove spaces from a string
● Count the sum of numbers in a string
● Capitalize the first and last letter of each word of a string
● Frequency of characters in a string
● Non-repeating characters in a string
● Find gcd (HCF) of two numbers using recursion.
● Find lcm of two numbers using recursion.
● Display all array elements using recursion.
● Find the sum of elements of the array using recursion.
● Find maximum and minimum elements in an array using
recursion.
● Write a C program to find the minimum and the maximum
value in an array.
● Write a C program to count the number of vowels and the
number of consonants in a word.