Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- int main()
- {
- int temperaturi[7][5],i,j,max;
- printf("Vnesete gi elementite na 7x5 matricata: \n");
- for(i=0;i<7;i++)
- {
- for(j=0;j<5;j++)
- {
- printf("Temperaturi[%d][%d]= ",i,j);
- scanf("%d",&temperaturi[i][j]);
- }
- }
- for(i=0;i<7;i++)
- {
- max=temperaturi[i][0];
- for(j=0;j<5;j++)
- {
- if(temperaturi[i][j]>max)
- {
- max=temperaturi[i][j];
- }
- }
- printf("%d-tiot den ima %d temperatura.",i+1,max);
- }
- return 0;
- }
- //max temperatura za odreden den od nedelata,od 5 merenja
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement