大道至简第一章伪代码

public class yugongyishan
{
  public static void main(string[] args)
  {
    while(愚公没死||愚公的后代存在)
    {
      叩石垦壤,箕畚运于渤海之尾;
      if(毕力平险,指通豫南,达于汉阴)
      {
      return(任务完成);
      break;
      }
    }

  }

 }

 

 

public class yisheng
{
  public static void main(string[] args)
  {
    if(!先天智障&&!后天懒惰)
      可以学会编程;
    while(活着)
    {
      if(生病||不能行动||意外的紧急事件)
        continue;
      if(冷)
        先穿衣服后洗漱;
      else
        先洗漱后穿衣服;
    }
  }
}

posted @ 2017-09-17 15:42  野生小码农  阅读(120)  评论(0)    收藏  举报