Home » Full Stack Development (Page 2)
Category Archives: Full Stack Development
Bubble Sort in C with Example and Code
Bubble Sort in C: Definition, Algorithm, and Examples Bubble Sort is a simple sorting algorithm that works by repeatedly swapping the adjacent elements if they are in the wrong order. This process continues until the array is sorted. It is named βBubbleβ because the largest element bubbles up to the end of the array in […]
sum=0echo “enter 10 number:”n=1while [ $n -le 10 ]doread nsum=$((sum+n))n=$((n+1))doneecho “The sum of 10 number :$sum”
echo “enter string”read secho “Length of String:” ${#s} r=$(echo “$s”|rev ) if [ “$s” == “$r” ]thenecho “The String is Palindrome”elseecho ” The String is not Palindrome”fi vowel_count=$(echo “$s” | grep -o “[aeiou]” | wc -l)echo “Total number of vowels: $vowel_count”