上山打老虎 发表于 2021-7-1 19:22:06

循环、选择、调用函数

include

  int main()
{  int A = 0;
  printf("开始数羊\n");
  while(Ay)
  return x;
  else
  return y;
}  int main()
{  int A = 1;
  int B = 2;
  int max = 0;
  max = Max (A,B);
  printf("最大值为:%d\n",max);
  return 0;
}
include

  int main ()
{  int input = 0;
  printf("你想睡觉嘛?\n(0/1)");
  scanf("%d",&input);
  if(input == 0)
  printf("好的\n");
  else
  printf("明白\n");
  return 0;
}
页: [1]
查看完整版本: 循环、选择、调用函数