How to solve this (While Loop ) using hoare logic

后端 未结 0 1787
抹茶落季
抹茶落季 2021-02-15 06:37

How to solve this hoare logic ?

{x≥0 && y≥0 } q :=0 ; r :=x ; while r≥y do r :=r-y ; q :=q+1 ; {y≥0 && x≤ 300}

{n≥1} p :=0 ; i :=1 ; while (i≤

相关标签:
回答
  • 消灭零回复
提交回复
热议问题