#include <iostream>
#include <cstdlib> // Needed for rand() and srand()
#include <ctime> // Needed for time()
using namespace std;
int main() {
// your code goes here
srand(time(0));
int random = rand() % 101;
cout<<"number is "<<random<<endl;
if(random > 50){
cout<<random<<" "<<"is > than 50"<<endl;
} else if (random < 50) {
cout<<random<<" is < than 50"<<endl;
}else{
cout<<random<<"=50"<<endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0ZGxpYj4gLy8gTmVlZGVkIGZvciByYW5kKCkgYW5kIHNyYW5kKCkKI2luY2x1ZGUgPGN0aW1lPiAgIC8vIE5lZWRlZCBmb3IgdGltZSgpCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCXNyYW5kKHRpbWUoMCkpOwoJaW50IHJhbmRvbSA9IHJhbmQoKSAlIDEwMTsKCWNvdXQ8PCJudW1iZXIgaXMgICI8PHJhbmRvbTw8ZW5kbDsKCWlmKHJhbmRvbSA+IDUwKXsKCQljb3V0PDxyYW5kb208PCIgIjw8ImlzID4gdGhhbiA1MCI8PGVuZGw7Cgl9CWVsc2UgaWYgKHJhbmRvbSA8IDUwKSB7CmNvdXQ8PHJhbmRvbTw8IiBpcyA8IHRoYW4gNTAiPDxlbmRsOwp9ZWxzZXsKY291dDw8cmFuZG9tPDwiPTUwIjw8ZW5kbDsKCQl9CgkJCQoJCQoJcmV0dXJuIDA7Cn0=