Joke Collection Website - Cold jokes - Problems with C language. Beginners. Please don’t laugh at me if you make childish mistakes -0-

Problems with C language. Beginners. Please don’t laugh at me if you make childish mistakes -0-

Changing to the following program will get the results you want?

#include

int?main()

{?

int?a[5][5];?

int?getdata(int?b[5][5]);?

int?output(int?c[5][5]);?

getdata(a);?

output(a);?

return?0;

}

int?getdata(int?b[5][5])

{

?int?i,j,x=1;?

?for(i=0;i<=4;i++)?

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

{ b[i][j]=x; ?

printf("%d\t",x);

if(x%5==0)printf("\n");

x++;?

}?

return?0;

}

int?output(int?c[5][5])

{ int?m,n;?

for( m=0;m<=4;m++)?

{? for(n=0;n<=4;n++)?

{

if(m<=n)

printf("%d\t",c[m][n]);?

?else

? printf("\t");?

?}?

?printf("\n");?

?}

< p> ?

?return?0;

?}