精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • 3道vfp程序題

    3道vfp程序題
    1、輸入N個數(shù),找出最大和最小數(shù)
    2、一個數(shù)列,他的前3項依次為0,0,1,從第4項開始,以后每一項是它前3項之和,求這個數(shù)列的前30項.
    3、輸入N個數(shù),找出最大和最小數(shù)
    數(shù)學人氣:453 ℃時間:2020-06-12 05:33:51
    優(yōu)質(zhì)解答
    1.
    clear
    input "請輸入要比較的數(shù)個數(shù):" to n
    dime a(n)
    for i=1 to n
    input "第"+alltrim(str(i))+"個數(shù):"to a(i)
    endfor
    store a(1) to max,min
    for i=2 to n
    if maxa(i)
    t=min
    min=a(i)
    a(i)=t
    endif
    endfor
    ?"最大數(shù)是:",max
    ?"最小數(shù)是:",min
    return
    2.
    clear
    set talk off
    a=0
    b=0
    c=1
    ?a,b,c
    for i=4 to 30
    d=a+b+c
    ?d
    a=b
    b=c
    c=d
    endfor
    set talk on
    return
    我來回答
    類似推薦
    請使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點,以保證最佳閱讀效果。本頁提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機版