Three VFP program questions 1. Enter n numbers to find the maximum and minimum number 2. For a sequence, the first three terms are 0, 0 and 1, starting from the fourth term, and each subsequent term is the sum of the first three terms. Find the first 30 terms of the sequence 3. Enter n numbers to find the maximum and minimum number

Three VFP program questions 1. Enter n numbers to find the maximum and minimum number 2. For a sequence, the first three terms are 0, 0 and 1, starting from the fourth term, and each subsequent term is the sum of the first three terms. Find the first 30 terms of the sequence 3. Enter n numbers to find the maximum and minimum number


one
clear
Input "please input the number to compare:" to n "
dime a(n)
for i=1 to n
Input "th" + alltrim (STR (I)) + "Number:" 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
The maximum number is, max
? the minimum number is: min
return
two
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



Calculate 3 + 33 + 333 The sum of the first 10 terms is clear M = 3 N = 0 s = 0 for I = 10 to 1_______ n= ____ S = S + n endforfill in the blanks
This is the topic of VFP, mainly the second empty n = No,


n=n*10+m