输入数组int a[n],b[n]的元素,用数组a和b构造数组c[n],使:当a[i]>b[i]时,c[i]=a[i]-b[i],当a[i]

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 08:57:38
输入数组int a[n],b[n]的元素,用数组a和b构造数组c[n],使:当a[i]>b[i]时,c[i]=a[i]-b[i],当a[i]
x){o֥Ϧnx%3D!1:/V' H<:ϧ'>ԓl^ˆd'{[=;91:3. H

输入数组int a[n],b[n]的元素,用数组a和b构造数组c[n],使:当a[i]>b[i]时,c[i]=a[i]-b[i],当a[i]
输入数组int a[n],b[n]的元素,用数组a和b构造数组c[n],使:
当a[i]>b[i]时,c[i]=a[i]-b[i],当a[i]

输入数组int a[n],b[n]的元素,用数组a和b构造数组c[n],使:当a[i]>b[i]时,c[i]=a[i]-b[i],当a[i]
#include
#include
int main()
{
int n;
printf("input n:");
scanf("%d",&n);
int *a,*b,*c,i;
a = (int *)malloc(sizeof(int)*n);
b = (int *)malloc(sizeof(int)*n);
c = (int *)malloc(sizeof(int)*n);
printf("输入数组a:");
for (i=0;i