Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int legmagasabb(int*tomb, int elemszam)
- {
- int m=tomb[0], i;
- for(i=0; i<elemszam; i++)
- if(tomb[i]>m)
- m=tomb[i];
- return m;
- }
- int main()
- {
- // l l f l l f l l f l l f
- int t[12] = {165,178,192,155,162,188,176,159,171,183,147,152};
- int res;
- res=legmagasabb(t,12);
- printf("Legmagasabb:%d cm\n", res);
- return 0;
- }
Add Comment
Please, Sign In to add comment