I need a code of this in C language. Instructions: Your task is to ask the user for the number of rows and columns of a 2D array. Then, print the row number of the row where the sum of all of its elements is even. For this problem, it is guaranteed that there is one and only one such row. Input 1. Number of rows 2. Number of columns 3. Elements of the 2D array Output Note that the row number starts at 0, not 1. The result should be like this:  Enter #·of rows: 3 Enter # of columns: 3 Enter·elements: 2 7 4 1 1 2 0 5 0 Even row: 1

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 2RQ
icon
Related questions
Question
100%

I need a code of this in C language.

Instructions:

  1. Your task is to ask the user for the number of rows and columns of a 2D array.
  2. Then, print the row number of the row where the sum of all of its elements is even.
  3. For this problem, it is guaranteed that there is one and only one such row.

Input

1. Number of rows

2. Number of columns

3. Elements of the 2D array

Output

Note that the row number starts at 0, not 1.

The result should be like this: 

Enter #·of rows: 3

Enter # of columns: 3

Enter·elements:

2 7 4

1 1 2

0 5 0

Even row: 1

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Concept of pointer parameter
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage