matrix fonction

Hello,
I can not compile this program, had sent me some code, but it can not compiler.S it Please look at this program.
I still have ONLY print the square root of each element of the matriz.

#include<conio.h>
#include<stdio.h>
#include<math.h>
#define F 7
#define C 7
void func_matriz(int mat[][7]);
void imprimir(int mat[][7]);
int main()
{
int mat[7][7];
func_matriz(mat);


getch();
}
void func_matriz(int mat[][7])
{


int i,j;


for(i=0;i<F;i++)
{
for(j=0;j<C;j++)
{
if(i==j)
mat[i][j]=0;
else if(i+j==(7-1))
mat[i][j]=0;
else

mat[i][j]=((i+0)+j);


}
}
}

void imprimir(int mat[][7])
{
int i=0,j=0;



for(i=0;i<F;i++)

{

for(j=0;j<C;j++)

{

printf("\t %f",sqrt((double)(mat[i][j])));

}

printf("\n\n");

}

}

this is really urgent!! help me.
send me the true code please.
this is really urgent!! help me.

If it was really urgent, you'd do things to help make it easier for people to help you quickly, such as:

- Use code tags, to make it easy to read
- Give us more detailed information about the compiler errors, and the lines they occur on.

Since you've decided not to do that, I can only conclude that you're not as desperate for rapid help as you claim you are.
It compiles ok in my compiler,

so what's the error ?
The code does use one construct that is not part of standard C and will therefore fail on certain platforms.
Topic archived. No new replies allowed.