#include<stdio.h>
#include<stdlib.h>
int n,a[100],i;
int Hienmang(int n)
{
for(i=0;i<n;i++)
printf(“\n a[%d]=%d”,i,a[i]);
}
int main()
{
printf(“nhap n=”);
scanf(“%d”,&n);
for(i=0;i<n;i++)
a[i]=-rand();// ham Rand trong stdlib.h
Hienmang(n);
}

http://seotukhoagoogle.com/wp-content/uploads/2017/10/ngon-ngu-lap-trinh-c.jpghttp://seotukhoagoogle.com/wp-content/uploads/2017/10/ngon-ngu-lap-trinh-c.jpgSeotukhoaGoogleCode C, C++#include<stdio.h> #include<stdlib.h> int n,a,i; int Hienmang(int n) { for(i=0;i<n;i++) printf('\n a=%d',i,a); } int main() { printf('nhap n='); scanf('%d',&n); for(i=0;i<n;i++) a=-rand();// ham Rand trong stdlib.h Hienmang(n); }