函数子程序

更新时间:2024-09-19 14:04:33

函数子程序的词语属性

拼音hán shù zǐ chéng xù
拼音字母han shu zi cheng xu
拼音首字母hszcx

函数子程序的百科含义

子程序GOSUB   例:求4!+5!+6!    S=0    n=4: gosub f:s=s+p    n=5: gosub f:s=s+p    n=6: gosub f:s=s+p    print “4!+5!+6!=”;s    end    f: p=1    for i=1 to n    p=p*i    next i    return 子程序调用:   ON  gosub ,,…,    例6:“小学生算术练习”——轮流出一个二位数和一个一位数的加法、减法和乘法的题目,共出十题,每题 10分。 randomize    for i=1 to 10    a=int(90...