Task view is the option that you would not see on a Windows 10 Start menu, whereas if you click the Windows button, you can see tiles with different applications, all of your apps in the form of tiles you can distribute according to your own taste, and power button where you can choose whether you want to shut down your computer, put it to sleep, or log out.
- # Algorithm to find the number of integers greater than 10 in a list
- list = read(list of integers)
- n = len(list)
- count = 0
- For i = 1 to n
- If list[i] > 10:
- count = count + 1
- Endif
- End
- Return count
<h3>
Explanation:</h3>
Then the length of the list is stored in a variable n. A variable count to store the number of integers more significant than 10 is initialized to 0.
- Then, a for-loop is used to iterate over the list. A for-loop is used in this case because every element of the inventory needs to be checked for a value greater than 10.
- In each iteration of the for-loop, the value at the index of the list is checked. If the value is greater than 10, then the counter variable count is incremented by 1.
- The iterations continue till the for-loop ends. At this point, the variable count will be the number of integers greater than 10.
- Note that in case the list does not have any number greater than 10, then the count variable will be 0.
To learn more about it, refer
to brainly.com/question/25311149
#SPJ4
Answer:
Check the explanation
Explanation:
#include <stdio.h>
int inversions(int a[], int low, int high)
{
int mid= (high+low)/2;
if(low>=high)return 0 ;
else
{
int l= inversions(a,low,mid);
int r=inversions(a,mid+1,high);
int total= 0 ;
for(int i = low;i<=mid;i++)
{
for(int j=mid+1;j<=high;j++)
if(a[i]>a[j])total++;
}
return total+ l+r ;
}
}
int main() {
int a[]={5,4,3,2,1};
printf("%d",inversions(a,0,4));
return 0;
}
Check the output in the below attached image.