控制流 / 条件语句 / if/else 语句

using System;

int GetLatitude() {
    return 90;
}

var 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";
}

Console.WriteLine(location);