C Program to Perform Arithmetic Operations on Arrays

In this tutorial, i am going to show you how to perform arithmetic operations on arrays in c programs. C Program to Perform Arithmetic Operations on Arrays #include<stdio.h> int main(){ int size, i, A[50], B[50]; int add[10], sub[10], mul[10], mod[10]; float div[10]; printf(“enter array size:\n”); scanf(“%d”, &size); printf(“enter elements of 1st array:\n”); for(i = 0; … Read more

C Program to Find Lower Triangle Matrix

In this tutorial, i am going to show you how to find lower triangle matrix in c programs. C Program to Find Lower Triangle Matrix /* C Program to find Lower Triangle Matrix */ #include<stdio.h> int main() { int i, j, rows, columns, a[10][10]; printf(“\n Please Enter Number of rows and columns : “); scanf(“%d … Read more

C Program to Print Rhombus Star Pattern

In this tutorial, i am going to show you how to rhombus star pattern with the help of for loop and while loop in c programs. All C Programs to Print Rhombus Star Pattern C Program to Print Rhombus Star Pattern using For Loop #include<stdio.h> int main() { int i, j, k, rows; printf(“Enter Rhombus … Read more

C Program to Insertion Sort

In this tutorial, i am going to show you how to implement the insertion sort program in c with the help of for loop, while loop, and function. Insertion sort is a sorting algorithm that places an unsorted element at its suitable place in each iteration. Insertion sort works similarly as we sort cards in our … Read more