We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
int main() { int i, m[9]; for(i=1;i<=9;i++) { scanf("%c",&m[i-1]); } for(i=1;i<=9;i++) { printf("%c",m[i-1]); if(i%3==0) { printf("\n"); } } printf("%d\n",m[0]); printf("按回车输出对角线乘积\n"); getch(); int b=1,a,c,d; for(a=1;a<=9;a++) { if (a%3==0) { c=a/3; d=3; } else{ c=a/3; d=a%3; }
if (c=d) { b=b*m[a-1]; } } printf("%d\n",b);
return 0;
}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
include<stdio.h>
int main()
{
int i, m[9];
for(i=1;i<=9;i++)
{
scanf("%c",&m[i-1]);
}
for(i=1;i<=9;i++)
{
printf("%c",m[i-1]);
if(i%3==0)
{
printf("\n");
}
}
printf("%d\n",m[0]);
printf("按回车输出对角线乘积\n");
getch();
int b=1,a,c,d;
for(a=1;a<=9;a++)
{
if (a%3==0)
{
c=a/3;
d=3;
}
else{
c=a/3;
d=a%3;
}
return 0;
}
The text was updated successfully, but these errors were encountered: