Advertisement
laith-0093

C++

Jan 16th, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <iostream.h>
  2. #include <conio.h>
  3. void main( )
  4. {
  5. int t[3][3],m,i,j;
  6. cout << "Enter numbers: \n";
  7. for (i=0; i<3; i++)
  8. {for (j=0; j<3; j++)
  9. cin >> t[i][j];}
  10. m = t[0][0];
  11. for (i=0; i<3; i++)
  12. {for (j=0; j<3; j++)
  13. if (m > t[i][j])
  14. m = t[i][j];}
  15. cout << "min= " << m;
  16. getch ();
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement