摘要:
求4行3列矩阵和3行4列矩阵的乘积。各构成元素的值从键盘输入。 1、 #include <stdio.h> int main(void) { int i, j, k, a[4][3], b[3][4], c[4][4] = {0}; puts("input the elements of 4 row 阅读全文
摘要:
1、 #include <stdio.h> #define NUMBER 1000 int main(void) { int i, num, a[NUMBER]; do { printf("number of element: "); scanf("%d", &num); if(num < 1 | 阅读全文
摘要:
1、 #include <stdio.h> #define NUMBER 4 int main(void) { int i, a[NUMBER]; printf("the number of elements: %d\n", NUMBER); for(i = 0; i < NUMBER; i++) 阅读全文
摘要:
在应用对象式宏的数组中对数组的元素进行倒序排列。 1、 #include <stdio.h> #define NUMBER 9 int main(void) { int i, a[NUMBER]; puts("please input the elements."); for(i = 0; i < 阅读全文