diff --git a/exercise2.c b/exercise2.c index 8f0bed2..c5246d9 100644 --- a/exercise2.c +++ b/exercise2.c @@ -10,10 +10,21 @@ //main function section int main(){ //write here your program + int LA[] = {1, 4, 5, 7, 10, 12, 13, 17, 18, 20}; + int n = 10; + int i; + + for(i = 0; i < n; i++){ + if(LA[i]%2 == 0){ + printf("LA[%d] = %d \n", i, LA[i]); + } + + + } return 0; } -//user-defined section \ No newline at end of file +//user-defined section