Advertisement
a53

FGreater

a53
Nov 25th, 2020
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. int FGreater(int a[],int n,int x)
  2. {
  3. int Nr=-1,Max=2147483647;
  4. for(int i=0;i<n;++i)
  5. if(a[i]>x&&a[i]<=Max)
  6. Nr=Max=a[i];
  7. return Nr;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement