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条)

报告相同问题?

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效