Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- double num,i,n,max=-9999,min=9999;
- printf("Enter the value of ==");
- scanf("%lf",&n);
- for(i=0;i<n;i++)
- {
- scanf("%lf",&num);
- if(num>=max)
- max=num;
- if(num<=min)
- min=num;
- }
- printf(" \n %lf \n%lf",max,min);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement