第一天demo if...else

#include
#include

int main()
{
  int num;
  int numOfHorse;

  printf("Please Input a Num. \n");

  scanf_s("%d", &num);

  if (num >= 100)
  {
    printf("how Many House Do You Have? \n");
    scanf_s("%d", &numOfHorse);
    if (numOfHorse <= 2)
    {
      printf("i Like You But Your Horse is Not Enough \n");
    }
    else
    {
      printf("i Marry You!");
    }
  }
  else if
  {
    printf("See You Bye!");
  }

  else

  {

    printf("out You ");

  }

}

你可能感兴趣的:(第一天demo if...else)