C programming 2013

2013   Q.no 3 #include<stdio.h> int min(int a[],int n) //Returns minimum element in array { int i,minn=a[0]; for(i=0;i<n;i++) { if(a[i]<minn) minn=a[i]; } return minn; } int max(int a[],int n) //Returns maximum element in array { int i,maxx=a[0]; for(i=0;i<n;i++) { if(a[i]>maxx) maxx=a[i]; } return maxx; } void main() { int n,i,a[n],j,count=0,min_element,max_element,pov=0,neg=0,cou=0,small; printf(“Enter how many number to […]

Continue Reading