有一个N×N的数组,求其右上三角(含主对角线)的元素之和。#include "stdio.h"#define N 3int fun(int a[N][N]){ int i,j,s; s=0; for(i=0;i 对角线 有一个 发布时间:2024-06-15 17:27:06