## C program for Selection Sort

Write a C Program For Selection Sort  C program for Selection Sort: In Selection sort, the smallest element is exchanged with the first element of the unsorted list of elements (the exchanged element takes the place where the smallest element is initially placed). Then the second smallest element is exchanged with the second element of … Read more

## C Program for Binary Search and Bubble Sort Using Recursion

C Program for Binary Search and Bubble Sort Using Recursion C Program For Selection Sort: Click Now Write a C Program for Binary Search Using Recursion #include<stdio.h> #include<stdlib.h>  void BinarySearch(int arr[], int num, int first, int last) {   if(first > last)    {   printf(“Number is not found”);   }     else     { … Read more

## Print Sum of Even Number Using Recursion

Write a C program to print sum of Even Number in Array using Recursion   #include<stdio.h> void SumOfEven(int a[ ] , int num , int sum); main() {   Int i, a, num, sum=0;   printf(“Enter number of Array Elementsn”);   scanf(“%d” , &num);   printf(“Enter Array Elementsn”);   for(i=0;i<num;i++)    { scanf(“%d”,&a[i]); } SumOfEven(a,num-1,sum); }  void SumOfEven(int a[ ], int … Read more

## C Program for Simple and Compound Interest

C Program for Simple and Compound Interest Bubble Sort and Binary Search: Click here Selection Sort: Click Here Write a C program to Calculate Simple Interest #include<stdio.h> main() {  float p,r,t,simpleInterest;  printf(“Enter Principaln”);  Scanf(“%f”, &p);  printf(“ Enter Rate in percentage n”);  scanf(“%f” ,&r);  printf(“Enter Time in years(decimals)n”);  scanf(“”%f” ,&t);  simpleInterest=(float)(p*r*t)/100.0;  printf(“Simple Interest is %fn”, simpleInterest); … Read more

error: Content is protected !!