#include <stdio.h>
int myarray[5][6] = { { 1,0,0,0,0,0 },{ 0,0,0,0,0,0 },{ 0,0,0,0,0,0 },{ 0,0,0,0,0,0 },{ 0,0,0,0,0,0 } };

void main()
{
	int correct = 0;
	int down, across,i,j;
	
	printf("Welcome to the Treasure Hunt\n\n");
	printf("Please enter the down guess");
	scanf("%d", &down);
	printf("Please enter the across guess");
	scanf("%d", &across);

	if (myarray[down][across] == 1)
	{
		printf("Treasure found\n");
	}
	else
	{
		printf("No treasure\n");
	}

	
	for (i = 0;i < 5;i++)//print out whole grid
	{
		for (j = 0;j < 6;j++)
		{
			printf("%d ", myarray[i][j]);
		}
		printf("****\n");
	}
}

