您现在的位置:希赛教育首页 > 软考学院 > 程序员 > 正文
2008年下半年程序员笔试考前练习(8)[1]
http://www.educity.cn 作者:不详 来源:网络 2008年11月5日 发表评论 进入社区

  #include

  main()

  {

  static int a[5][5]={

  {1,2,3,4,0},

  {2,3,4,0,6},

  {3,0,1,7,5},

  {0,0,2,4,1},

  {8,4,3,2,7}

  };

  int i,j;

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

  {

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

  {

  if (a[j]==0)

  break;

  printf("%4d",a[j]);

  }

  printf("\n");

[1]  [2]