Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main ()
- {
- int n,a[n],i,max,j,brojac=0;
- printf("Unesite broj n:");
- scanf("%d",&n);
- for ( i = 0; i < n; i++ )
- {
- printf("Unesite %d. clan niza",i+1);
- scanf("%d",&a[i]);
- }
- max=a[0];
- for (i=1;i<n; i++)
- {
- if (max<a[i])
- {
- max=a[i]
- }
- }
- for (i=0; i<n; i++)
- {
- if ( max == niz[i])
- {
- brojac=brojac+1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement