當前位置:編程學習大全網 - 電腦編程 - 編程設計題!請編寫函數fun:在形參指針所指的4個整數中找出最大值跟最小值,最大值

編程設計題!請編寫函數fun:在形參指針所指的4個整數中找出最大值跟最小值,最大值

function fun(v1,v2,v3,v4,a,d)

a=v1

if a<v2 then a=v2

if a<v3 then a=v3

if a<v4 then a=v4

d=v1

if d>v2 then d=v2

if d>v3 then d=v3

if d>v4 then d=v4

end function

  • 上一篇:西門子洗衣機門壞了,能修好嗎?
  • 下一篇:防三菱單板plc怎麽用三菱編程線通訊不上是什麽原因
  • copyright 2024編程學習大全網