Code:
#include <iostream>
#include <iomanip>
using namespace std;
int main ()
{
int counts[ROWS][ISLES]
{
{ 10, 10, 10, 10, 10, 10, 10, 10, 10, 10 },
{ 10, 10, 10, 10, 10, 10, 10, 10, 10, 10 },
{ 10, 10, 10, 10, 10, 10, 10, 10, 10, 10 },
{ 10, 10, 20, 20, 20, 20, 20, 20, 10, 10 };
{ 10, 10, 20, 20, 20, 20, 20, 20, 10, 10 };
{ 10, 10, 20, 20, 20, 20, 20, 20, 10, 10 };
{ 20, 20, 30, 30, 40, 40, 30, 30, 20, 20 };
{ 20, 30, 30, 40, 50, 50, 40, 30, 30, 20 };
{ 30, 40, 50, 50, 50, 50, 50, 50, 40, 30 };
}
}
Now i will make 5 diferent functions: