1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
vovikov84 [41]
3 years ago
5

. The variable numbers is a 2-dimensional array of type int; output all of its elements that are strictly greater than 10

Computers and Technology
1 answer:
lana66690 [7]3 years ago
3 0

Answer:

// here is code in c++.

#include <bits/stdc++.h>

using namespace std;

int main()

{

   // variable to read row and column of 2-d array

  int r,c;

  cout<<"enter the number of row:";

  // read number of row

  cin>>r;

  cout<<"enter the number of column:";

  // read number of column

  cin>>c;

     // create an array of size rxc

  int arr[r][c];

  cout<<"enter the elements of the array:"<<endl;

     // read the elements of 2-d array

  for(int i=0;i<r;i++)

  {

      for(int j=0;j<c;j++)

      {

          cin>>arr[i][j];

      }

  }

  cout<<"numbers which are greater than 10 in 2-d array"<<endl;

  for(int i=0;i<r;i++)

  {

      for(int j=0;j<c;j++)

      {

          // if element is greater than 10, print it

          if(arr[i][j]>10)

          cout<<arr[i][j]<<" ";

      }

      cout<<endl;

  }

  return 0;

}

Explanation:

Read the size of 2-d array i.e row and column.Create a 2-d array of size rxc of integer type.Read the elements of the array. Then traverse the array and if an element if greater than 10 then print that element.

Output:

enter the number of row:3                                                                                                        

enter the number of column:3                                                                                                    

enter the elements of the array:                                                                                                

23 45 53 78 1 9 6 8 77                                                                                                                                

numbers which are greater than 10 in 2-d array                                                                                  

23 45 53                                                                                                                        

78                                                                                                                              

77        

You might be interested in
3<br> Select the correct answer.<br> What is the output of the following HTML code?<br>Please
maw [93]

Answer: or element_id Specifies the relationship between the result of the calculation, and the elements used in the calculation

form form_id Specifies which form the output element belongs to

name name Specifies a name for the output element

Explanation:

7 0
2 years ago
Read 2 more answers
Which of the following are not valid assignment statements? A) total = 9;
never [62]

Answer:

The correct option for the given question is option(b) i.e 72 = amount;

Explanation:

In the option(a) the total variable store the value 9 which is a valid assignment  

In the option(b) 72 is not a variable because the variable will never start with a numeric number. Therefore it is not a valid assignment statement.

In the option(c) the yourAge variable store the value of myAge variable which is a valid assignment.

So correct answer is an option(b).

7 0
3 years ago
The HATCH command is found on which panel to the Home tab to the AutoCAB ribbon?
Agata [3.3K]

The answer is B) Draw


3 0
3 years ago
What is a computer?​
Oksanka [162]

Answer:

Hi myself Shrushtee. And l have given your answer in Hindi and English language.

Explanation:

an electronic machine that can store, find and arrange information, calculate amounts and control other machines

जानकारी संचित करने, ढूँढ़ने व व्‍यवस्थित करने, परिकलन करने व अन्‍य मशीनों पर नियंत्रण रख पाने वाली एक इलेक्‍ट्रॉनिक मशीन; कंप्‍यूटर

please mark me as brainleist

5 0
2 years ago
In an agile team who is responsible for tracking the tasks
Alik [6]

Answer:

All team members

Explanation:

In respect of the question, the or those responsible for tracking the tasks in an agile team comprises of all the team members.

Agile in relation to task or project management, can be refer to an act of of division of project or breaking down of project or tasks into smaller unit. In my opinion, these is carried out so that all team members can be duly involved in the tasks or project.

5 0
3 years ago
Other questions:
  • Describe the difference between fuses and circuit breakers. where might each type of device find its best use? g
    10·1 answer
  • Ms Access is spreadsheet software.True or false​
    9·2 answers
  • Jared does not update his computer’s system software. What threat does his computer face?
    9·1 answer
  • You just received a message from the internet which was encrypted with asymmetric encryption. what do you need to do to read the
    12·1 answer
  • Which is a correctly formatted Python tuple?
    9·1 answer
  • Name the different type of vegetation found in India ?​
    8·2 answers
  • Calculate the performance of a processor taking into account stalls due to data cache and instruction cache misses. The data cac
    11·1 answer
  • Which of the following is true for an API?
    6·1 answer
  • Edhesive unit 4 test
    9·1 answer
  • A system that receives drawing information from electronic cad files, prepares the printing materials, and controls the size and
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!