Control flow / Conditional statements / if/else statements

#include <iostream>
using namespace std;

int latitude = getLatitude();
string location = "";
if (latitude == 0) {
    location = "Equator";
else if (latitude == 90) {
    location = "north Pole";
else if (latitude == -90) {
    location = "south Pole";
else {
    location = "not at the Equator or Pole";
}
cout << "latitude is " << latitude << endl;
cout << "location: " << location;

int getLatitude() {
    srand((int)time(NULL));
    return (rand() % 181) - 90;
}