From f3201b1330b5a437814d2e41f7f7921b9b5437ff Mon Sep 17 00:00:00 2001 From: WongChinWee <93850449+WongChinWee@users.noreply.github.com> Date: Tue, 31 May 2022 02:28:44 +0800 Subject: [PATCH] Update exercise2.c //documentation section /* Exercise 2*/ //pre-processor section #include //global variable section //main function section int main(){ //write here your program int n,a,i,count=0; printf("Enter the number of elements in the array:\n"); scanf("%d",&n); int array[n]; printf("Enter the numbers in the array:\n"); for(i=0; i @@ -10,8 +10,48 @@ //main function section int main(){ //write here your program + int n,a,i,count=0; + printf("Enter the number of elements in the array:\n"); + scanf("%d",&n); + int array[n]; + printf("Enter the numbers in the array:\n"); + for(i=0; i