0
Can anyone help me with this code? Im kinda new to C
Write a program to print how many even numbers are in the 1st , 4th and 6th columns of a 2-Dimensional array of size 6 rows by 6 columns.
1 Antwort
+ 13
Step no 1:
First creat an two dimensional array
Step no 2:
Creat a nested for loops (outer and inner for loops)
i = is outer loop veriable
j = is inner loop veriable
array name = arr;
Step no 3:
In inner loop use if block and give this condition if(i==1||i==4||i==6)
than in the if block add anthor if block and gives this condition arr[j]%2==0 if is its true meaning its a even number
else where is it odd number.