求大神,有没有vb写出来得如同驾校考试系统
1个回答
2017-03-30
展开全部
1、
dim i as integer,sum as integer
for i=50 to 100 step 2
print i
sum=sum+i
next
print sum
2、
dim i as integer,j as integer
dim a(9) as integer,tmp as integer
for i=0 to 9
a(i)=int(rnd*100)+1
print a(i);
next
for i=0 to 9
for j=i to 9
if a(i)<a(j) then
tmp=a(i)
a(i)=a(j)
a(j)=tmp
endif
next
next
for i=0 to 9
print a(i);
next
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询