C Program to check the letter is vowel or consonant

C Program to check the letter is vowel or consonant Problem:  Write a C program to check the letter is vowel or consonant. Solution: C code to check vowel or consonant using if-else #include <stdio.h> int main(){ char ch; printf(“Input a charactern”); scanf(“%c”, &ch); if ((ch >= ‘a’ && ch <= ‘z’) || (ch >= ‘A’ &&ch […]

Continue Reading

Insertion sort in an array – C code implementation

C Program insertion sort in an array  Problem: Write a C program of insertion sort which sorts a list of elements using insertion sort algorithm. What is insertion sort: To know some basic about insertion sort go to Wiki and find that- Insertion sort is a simple sorting algorithm that builds the final sorted array (or list) one item at […]

Continue Reading

C Program to Print Pascal’s triangle

C Program to Print Pascal’s triangle From Wikipedia about Pascal’s triangle is : Pascal’s triangle is a triangular array of the binomial coefficients. In much of the Western world, it is named after French mathematician Blaise Pascal, although other mathematicians studied it centuries before him in India,[1] Persia(Iran), China, Germany, and Italy.[2] Wiki Link – https://en.wikipedia.org/wiki/Pascal%27s_triangle See also how a pascal’s triangle is created in  a gif […]

Continue Reading