I didn’t get the plus and it let me review answers without an ad so idk so like you really don’t need plus I wouldn’t get it
Answer:
#include <iostream>
#include <stdlib.h>
#include <time.h>
using namespace std;
int main()
{
srand (time(NULL)); //initialize random seed
int guess;
int number = rand() % 2; //generate random number 0 or 1
cout<<"Enter the guess (0 or 1): ";
cin>>guess; //store in guess
if(number == guess){ //check if number equal to guess
cout<<"Guess is correct."<<endl; //if true print correct message.
}else{
cout<<"Guess is incorrect."<<endl; //otherwise print correct message.
}
return 0;
}
Explanation:
first include the three library iostream for input/output, stdlib,h for using the rand() function and time for using the time() function.
create the main function and initialize the random number generation seed, then generate the random number using the function rand() from 0 to 1.
after that, take input from user and then with the help of conditional statement if else check if random number is equal to guess number or not and print the appropriate message.
Explanation:
hardware is the physical components that a computer system requires to function
TYSM
Answer:
I believe it is saying your login credentials are somehow incorrect otherwise you should be able to log into many devices
Explanation:
The #line is mainly used to reset the line number and also the filename in the code.
<h3>What does a line in C mean?</h3>
The c in code is written in lower-case. The c that has a line over it means "with".
The C preprocessor is known to be macro processor that is often used often by the C compiler to change one's program before actual compilation. This #line means that one can do any reset any line of code to an arbitrary line number or a filename that is said to have been stated by the user.
Learn more about code from
brainly.com/question/25605883