Answer:
The answer to this question is "nested".
Explanation:
The answer to this question is nested because, In programming languages, there is a concept of nested if-else statement. In nested if-else statement placing if statement inside another IF Statement that is known as nested If in C Programming.
Example of nested if can be given as
#include <stdio.h>
int main()
{
int a,b,c;
printf("Enter 3 number\n");
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
if(a>b)
{
if(a>c)
{
printf("A is greater: %d",a);
}
}
else
{
if(b>c)
{
printf("B is greater: %d",b);
}
else
{
printf("C is greater: %d",c);
}
}
return 0;
}
output:
Enter 3 number
4
7
9
c is greater: 9
When a soccer ball is kicked the resulting motion of the ball is determined by Newton's laws of motion. From Newton's first law, we know that the moving ball will stay in motion in a straight line unless acted on by external forces. A force may be thought of as a push or pull in a specific direction; a force is a vector quantity. If the initial velocity and direction are known, and we can determine the magnitude and direction of all the forces on the ball, then we can predict the flight path using Newton's laws.
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
Answer:
motherboard
Explanation:
it is the leadership and main device for a computer or any technology and also it can store ur memory