Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(int argc, char** argv)
- {
- int i, j;
- float s, m[3][4] = {
- { 5, -2, 3, -8},
- { 12, 3, -4, 0 },
- { 1, 2, 3, 4 }
- };
- s = m[0][0];
- for(i = 0; i < 3; ++i)
- {
- for(j = 0; j < 4; ++j)
- {
- if(m[i][j] > s)
- {
- s = m[i][j];
- }
- }
- }
- printf("%f\n", s);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment