输入数组int a[n],b[n]的元素,用数组a和b构造数组c[n],使:当a[i]>b[i]时,c[i]=a[i]-b[i],当a[i]
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/25 02:41:20
输入数组inta[n],b[n]的元素,用数组a和b构造数组c[n],使:当a[i]>b[i]时,c[i]=a[i]-b[i],当a[i]输入数组inta[n],b[n]的元素,用数组a和b构造数组c
输入数组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