SCHOOL OF CODE BUILDERS
Learn To CODE. Become A DEVELOPER.
Pages
HOME
DATA STRUCTURES
STRINGS
ARRAYS
MATRIX
BINARY TREES
LINKED LIST
STACK
QUEUE
SORTING
SEARCHING
C
PYTHON
PSEUDOCODE
CONTEST PROBLEMS
ALGORITHMS
PATTERNS
PHP
C PUZZLES
C INTERVIEW QUESTIONS
JAVA
C++
HASHING
RECURSION
BASIC C PROGRAMS
TCS-CODEVITA
FACEBOOK
CONTACT US
C program to find median
C program to find median
Input:
Enter the number of elements in the array:
6
Enter the elements of the array:
1 2 3 4 5 6
Output:
The median of the array is 3
Implementation:
#include
#include
int main(void) { int a[1000],n,i; printf("Enter the number of elements in the array:\n"); scanf("%d",&n); printf("Enter the elements of the array:\n"); for(i=0;i
PREVIOUS
NEXT
HOME