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
One critique of determining the effectiveness of the psychodynamic perspective is that its theories are too vague to test. t/f
Feliz [49]
TRUE

Psychodynamic theories are usually too vague to allow a clear scientific test. Modest support for central psychodynamic hypotheses has been provided by Empirical studies. Critics have in the past disputed very many aspects of psychoanalysis including whether it is indeed a science or not. However much this is so, psychoanalysis is a great idea in personality that should never be overlooked.






3 0
3 years ago
Read 2 more answers
How many days has trump been a president
Free_Kalibri [48]
Hey there
_______________
The correct answer is
1 year, 64 days, 13 hours, 11 minutes and 44 seconds

__________
Hope this helps you
8 0
3 years ago
Read 2 more answers
A user from the accounting department has contacted you regarding problems with a dot matrix printer. When you examine the outpu
Mama L [17]

Answer:

Replace the printhead is the correct answer.

Explanation:

Because in the following statement, that person is from the department of the accounting then, he call the technician regarding the problem occurs in the printer which is dot-matrix printer and when he examined the dot-matrix printer and replace the printhead because when he print any document then, he finds that some letters have missing from the page.

5 0
3 years ago
Question 1
Alexxandr [17]

Explanation:

so, what do you think ?

I am sure you have used a computer or a smart phone yourself.

how many clicks or taps do you want to do before you you get what you were looking for ?

hmmmm ?

as few a possible, right ?

ideally, of course, this is one (1) click or tap.

7 0
2 years ago
coding could help prevent car crashes with automatic driving cars; however, some are afraid of tha because it allows control ove
dybincka [34]

Answer:

Honestly self driving cars are the future of humans and it can and will help us evolve. It could possibly be more dangerous if someone messed up the coding and it can be hacked by almost anyone with coding abilities, so it all depends on how safe you think you will be not driving yourself anywhere. Overall it could go both ways( good or bad.)

Hope this helped

Explanation:

5 0
3 years ago
Other questions:
  • A technology _____ begins with the birth of a new technology and ends when that technology reaches its limits and dies as it is
    13·1 answer
  • A digital footprint is all of the information on-line about a person posted by that person or others, ____________. intentionall
    14·1 answer
  • To use a stored address, C provides us with an indirection operator, ____.
    6·1 answer
  • Know when the double, int, String, and char data types are best used. Example: I would store a social security number in a strin
    7·1 answer
  • Which of these consoles have 64 bit architecture
    13·1 answer
  • Jim is in the market for a car that will last for the next 10 years and has saved up some money for the purpose of a car. What’s
    12·1 answer
  • 4. An abstract data type is defined as _____.
    14·1 answer
  • ___ involves connecting geographically remote computers into a single network and combining the computational power of all compu
    14·1 answer
  • What is SoC? how is it different from CPU?
    14·1 answer
  • Create the following new exceptions: PokemonException, which extends the Exception class. It must have a no-parameter constructo
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!