Answer:
CompTIA A+ there ya go!!!
Answer:
Answered below
Explanation:
//Program is written in Java.
public void first three elements(int[] nums){
int I;
//Check if array has up to three elements
if(nums.length > 3){
for(I = 0; I < nums.length; I++){
while (I < 3){
System.out.println(nums [I]);
}
}
else{
System.out.print("Array does not contain up to three elements");
}
}
}
The answer to your question is,
C. Identify her current skills
-Mabel <3
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