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
Sphinxa [80]
2 years ago
14

This is your code.

Computers and Technology
1 answer:
Sever21 [200]2 years ago
3 0

Construct d

  • d=[[5,10,15],[2,4,6],[11,33,55]]

So

d[2] is c i.e [11,33,55]

d[2][1]=c[1]

So it's 33

You might be interested in
How to find HCF and LCM of a number in Q Basic program?? ​
DerKrebs [107]
CLS
INPUT "Enter the first number"; a
INPUT "Enter the second number"; b
m = a
n = b
WHILE a <> 0
r = b MOD a
b = a
a = r
WEND
l = (m * n) / b
PRINT "HCF is "; b
PRINT "LCM is "; l
3 0
2 years ago
Compute the sum of the values in data_array, instead of using the sum() function. To do this, you must "accumulate" a result, wh
Dmitry [639]

Answer:

public class TestClock {

   public static void main(String[] args) {

       int [] data_array = {1,2,3,5,3,1,2,4,5,6,7,5,4,3};

       int data_array_sum =0;

       for(int i=0; i<data_array.length; i++){

           data_array_sum = data_array_sum + data_array[i];

           System.out.println("Acumulating sum is "+data_array_sum);

       }

       System.out.println("Total sum is: "+data_array_sum);

   }

}

Explanation:

Using Java programming language for this problem, we declare and initialize the array with this statement:

int [] data_array = {1,2,3,5,3,1,2,4,5,6,7,5,4,3};

Then created a variable to hold the sum values and initialize to zero:

int data_array_sum =0;

Using a For Loop statement we iterate through the array and sum up the values.

8 0
4 years ago
Adios brainly, wont be posting that much take my points away i d c
mrs_skeptik [129]
Omg I would die to have your points because when I get on people call me a noob because I just got the app like 3 days ago and every time I answer a question some says noob like dang I just started
5 0
3 years ago
Read 2 more answers
Please tell fast plzzzzzz.​
lana [24]

Answer:

True

Explanation:

4 0
3 years ago
1. Declare two dimensional double array with 3 rows and 4 columns. a) Use scanf to read the elements for this array. b) Write a
Kobotan [32]

Answer:

Following are the program in the C Programming Language:

#include <stdio.h> //header file

float avgs(int a[3][4]){ //define function

 int s =0, c=0; //set integer type variable

 float avg=0;   //set float type variable

 //set for loops to find sum of an array

 for (int i = 0; i < 3; i++){

   for (int j = 0; j < 4; j++){

   s = s + a[i][j];

   c +=1;

   }

 }

 //find average of an array  

 avg = s / c;

 return avg;

}

int min(int a[3][4]){//define function

 int m = a[0][0];  //set integer type variable  

 //set for loop for traversing

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

 {  for (int j = 0; j < 4; j++){

     if(m > a[i][j])

       m = a[i][j];

   }

 }

 return m;

}

int main(){//define main function

 int a[3][4];//set integer type Array

 printf("Enter the elements of an array:\n");

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

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

     scanf("%d", &a[i][j]);

 printf("\n Average of an array: %f", avgs(a));

 printf("\n Smallest element of an array: %d", min(a));

 return 0;

}

Explanation:

Here, we define header file "stdio.h" for print or scan the data.

Then, we define float type function "avgs()" for find the average of an array inside it.

  • we set two integer type variable for sum and count
  • we set float type variable to store average of an array
  • we set the for loops for the sum of an array.
  • we divide sum from count to find average and return it.

Then, we define integer type function "min()" to find the minimum value of an array.

  • we set integer type variable to store array elements
  • we set the for loops for traversing the array
  • we set if statement to find minimum value of an array.
  • we return the minimum value of an array.

Then, we define integer type "main()" function to call both the functions.

  • we set integer type array variable and get input from the user in it with the help of for loops.
  • we call both the functions with message and return 0.

8 0
4 years ago
Other questions:
  • Your crt monitor flickers. what should you do
    6·1 answer
  • You can use a(n) ____ to visually separate related controls from other controls on the form.
    8·1 answer
  • 1) What is Net beans
    6·1 answer
  • The _____ lets you see what styles have been applied to specific parts of a document, such as headings.
    9·1 answer
  • Which camera options shows time to be slowly
    5·1 answer
  • TRUE OR FALSE!!! <br> Your location can be tracked via your digital footprint.
    9·1 answer
  • You don't have to answer them all, just give me 2 or 3. Thanks
    7·1 answer
  • HELP ASAP 90 Points
    12·1 answer
  • Why would students most likely need to collect data? Check all that apply
    13·2 answers
  • This is more a question for Brainly,
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!