qq_48719493 2021-05-20 22:48 采纳率: 100%
浏览 118
已结题

这是个c语言的一道题 请大家帮帮忙

Let A be an n × n matrix of integers, n being an odd number. Write a C program that does the following tasks for n = 25: 1.Read from the keyboard the elements of matrix A, and then print this matrix row by row on the screen. 2. Write a function that sorts a list of n integers in increasing order. Then use this function to sort in increasing order the odd rows of matrix A, in decreasing order the even rows of matrix A, and print row by row the resulting matrix A.

  • 写回答

6条回答 默认 最新

  • 关注

    n 要输入5,就是n*n=25的矩阵

    不应该是n=25 

     

    如果对你有帮助,可以点击我这个回答右上方的【采纳】按钮,给我个采纳吗,谢谢。
     

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(5条)

报告相同问题?

悬赏问题

  • ¥15 matlab生成电测深三层曲线模型代码
  • ¥50 随机森林与房贷信用风险模型
  • ¥50 buildozer打包kivy app失败
  • ¥30 在vs2022里运行python代码
  • ¥15 不同尺寸货物如何寻找合适的包装箱型谱
  • ¥15 求解 yolo算法问题
  • ¥15 虚拟机打包apk出现错误
  • ¥15 用visual studi code完成html页面
  • ¥15 聚类分析或者python进行数据分析
  • ¥15 三菱伺服电机按启动按钮有使能但不动作