Algorithm
How to find the length of the string?
Write a program to find the length of the string “refrigerator”. In this program, we first declare a String variable word and assign it the …
How to print a string entered by user?
Write a program to print a string entered by user. Output: Explanation:
How to reverse an Array or String ?
We have taken some example to reverse an Array or String. Ex: Start writing code on your compiler : C++ Solution: C Solution: Java Solution: …
How to get maximum and minimum of an array using Sorting ?
Approach: One approach to find the maximum and minimum element in an array is to first sort the array in ascending order. Once the array …