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.
Oh I got this! I'm a professional photographer! The answer is Leaning to se the background before taking the photograph.
Plz mark brainliest! So glad I could help, and Have an AWESOME day!!!
Answer:
The answers to these questions are given below in the explanation section.
Explanation:
The following are 3 properties and 3 methods of the object computer.
Solution
Properties:
- computer name;
- computer model;
- computer color;
- computer manufacturer
Methods:
- Turn on/off
- Do Wordprocessing
- Connect Keyboard/Mouse
- Charging
- Play sound
The following are 3 properties and 3 methods of the object computer.
Properties:
- Car Model;
- Car Manufacturer;
- Car Color
Methods:
- Car Run (Speed)
- Change Gear
- Open/Close Door
- Turn on/off
Answer:Obscurity
Explanation: Security through the obscurity is the mechanism that is used for the security purpose in an operating system by inducing the confidentiality in the internal parts of the operating system.
The functioning of the security through obscurity(STO) works by hiding the flaws and errors related to security of the operating system.Thus , Signe is willing to use obscurity system.