Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

Header file



Comment



Specifer



Test expression



" ; " after loop




Array_print the smallest of N numbers




// AHF C PROGRAM SOLVING

//solving here 2_D   ARRAY 	programming problem

#include<stdio.h> #include<math.h> #define pf printf int main() { int i,n,arr[1000],min=11111,pos; pf("Enter the number of the element in the array: "); scanf("%d",&n); pf("\nEnter array element: "); for(i=0;i < n;i++) { scanf("%d",&arr[i]); //taking array element min=arr[i] < min?arr[i]:min; //shaking every number is minimum or not } //printing final minimum value pf("\nThe minimum number is: %d",min); return 0; }
OUTPUT:


© 2018 - All rights reserved