當前位置:編程學習大全網 - 網站源碼 - 把源代碼改成偽代碼。

把源代碼改成偽代碼。

scanf();\ \獲取輸入整數

seed();\ \隨機種子

for(temp = rand();溫度%7!= 0;temp = rand());

for(temp 1 = rand();temp1%7!= 0;temp 1 = rand());

sum = temp+temp 1;

if(sum = = 7 | | sum = = 11)goto Victory;

else if(sum = = 2 | | sum = = 3 | | sum = = 12)goto失敗;

其他

{

重復:

for(temp = rand();溫度%7!= 0;temp = rand());

for(temp 1 = rand();temp1%7!= 0;temp 1 = rand());

if(sum = = temp+temp 1)goto Victory;

else if(temp+temp 1 = = 7)goto失敗;

否則轉到重復:

}

  • 上一篇:必應搜索上的背景圖片怎麽下載下來?太美了。
  • 下一篇:簡易雲乾坤雲網絡驗證是不是壹個人的
  • copyright 2024編程學習大全網