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
Kara has been asked to create an employment application form for her company. Which of the following items can she use to make s
TEA [102]

Answer:

hehe the drawing toolbar has been used for school and block and Jerry hall is good enough

6 0
3 years ago
what is the correct process for setting up a recurring project for the same client in qbo accountant?
Anna [14]

Answer:

The answer is below

Explanation:

The correct process for setting up a recurring project for the same client in Quickbooks Online Accountant is as follows:

1. Go to Work, then select create a project

2. Select the Repeat button, then set the frequency and duration

3. Formulate the project and save it.

4. Reopen the project

5. And select the Duplicate button for the proportion of times you want it to recur. This includes assigning the interval, day of the recurrence, and end time.

6. Then select Save.

6 0
3 years ago
Mike needs to write the primary objectives of a project in a project plan. In which section should he write them?
pochemuha
D because you are always supposed to use your schedule
5 0
3 years ago
When a typist changes from a conventional typewriter to a word processor, his typing schema will have to _____ to incorporate th
Elis [28]
<span>The schema will have to accommodate to make the person more easily able to perform the new task. Accommodation allows the new information to be made a part of a schema without changing the overall concepts in the schema. The schema itself stays unchanged for the most part, but the new information is more of a "tweak" to the schema than a full-on update.</span>
8 0
3 years ago
During early recording, microphones picked up sound waves and turned them into electrical signals that carved a _______ into the
Tcecarenko [31]

Answer:

Groove

Explanation:

There is not much to explain

8 0
3 years ago
Other questions:
  • A(n) ____ loop executes a predetermined number of times.
    12·1 answer
  • You have connected thirteen pcs and laptops to a wireless network. to make your wlan more secure, what should you do to disallow
    11·1 answer
  • A ____ is a collection of computers and users that are identified by a common security database. workgroup controller segment do
    7·1 answer
  • Testing for information would be most likely to occur in which type of engineering?
    5·2 answers
  • Lexi wants to buy a $300 painting. when she gets to the store, she finds that it is on sale for 40% off. how much does Lexi spen
    10·1 answer
  • Write a function called show_info that takes a name, a home city, and a home state (a total of 3 arguments) and returns a full s
    12·1 answer
  • Which type of cloud computing offers easily accessible software and applications on the machines?
    7·1 answer
  • Testing a function or program using test values that are at or near the values that change the outcome of the program is known a
    13·1 answer
  • A customer wants to increase his storage capacity by 25gb
    7·1 answer
  • ____must cooperate with each other to neutralize the global threat of information censorship. Select 3 options.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!