You didn't specify a language, so here it is in C++.
#include <iostream>
#include <ctime>
int main()
{
srand(time(NULL));
int random, guess;
random = rand() % 100 + 1;
std::cout << "Random number generated!\nGuess the number: ";
std::cin >> guess;
if (guess == random)
std::cout << "Yes!";
else
std::cout << "No!";
return 0;
}
Answer people’s questions and log in daily
Answer:
FALSE.
Explanation:
A set collection is an unordered collection.It is optimized for searching but it does not allow duplicate elements.Set is implemented by LinkedHashSet,TreeSet or HashSet.
Set has various methods to remove,add,size,clear etc which enhances it's usage.
When duplicate values are entered in the set it will display that value only.
Hence we conclude that the answer to this question is False because it does not allows duplicate values.
Answer:
You have to friend people to be able to communicate with them.
Explanation: