Answer:
#include <stdio.h>
#include <string.h>
int main(void) {
char simonPattern[50];
char userPattern[50];
int userScore;
int i;
userScore = 0;
scanf("%s", simonPattern);
scanf("%s", userPattern);
for(i = 0;simonPattern[i]!='\0';i++){
if(simonPattern[i]!=userPattern[i]){
userScore=i;
break;
}
}
printf("userScore: %d\n", userScore);
return 0;
}
Explanation:
- Use a for loop that runs until it does not reach the end of simonPattern.
- Check whether the current index of simonPattern and userPattern are not equal and then assign the value of i variable to the userScore variable and break out of the loop.
- Finally display the user score.
Easy fast access to common apps or programs
for count in range(5, 8):
print(count)
This will produce.
5
6
7
I hope this helps!
Answer:
Differentiation
Explanation:
Differentiation is a business strategy used by organizations for gaining a competitive edge over competitors in the market.
During this approach, the organizations/business introduces a special strategy which goal is to differentiate their product or service in a positive way, from other products that are alike.
In this scenario the organization(CompX Inc) is offering a superior customer support.
Answer:
hardware and software is the answer