Advertisement
Asif2898

Untitled

Oct 19th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main() {
  4.  
  5. int i,a,b;
  6. int min = -100000;
  7.  
  8. printf("Number of input :\n");
  9. scanf("%d",&a);
  10.  
  11. for(i=1;i<=a;i++){
  12.  
  13. printf("Enter value %d:\n",i);
  14. scanf("%d",&b);
  15.  
  16. if (i==1) min = b;
  17.  
  18. if ( b < min)
  19. {
  20. min = b;
  21. }
  22.  
  23. }
  24.  
  25. printf ("min value = %d\n",min);
  26.  
  27.  
  28. return 0;
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement