English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

does any one knows visual basic programming
help me do this question
- Find Errors-:
1) Dim a as string
if age 18 then
print a
else print age
end
2) a = 0
b = 0
do
print b
a=a+5
b=b+1
loop while b>5
end
3) dim a as integer
for i = 1 to 10 step -2
next i
print a
end


PLEASE HELP !! tmro is my exam

2007-09-23 03:12:40 · 3 answers · asked by *purple world* 4 in Computers & Internet Programming & Design

3 answers

Umm, i'm just trying it out , not sure if it's correct
1)Dim a as string
if age = 18 then
print a
else
print age
end
2) a=0
b=0
print b
do
a=a+5
b=b+1
loop while b < 5
end
3) dim a as integer
for a = 1 to 10 step 2
print a
next a
end

2007-09-23 03:48:29 · answer #1 · answered by Girl12334 3 · 0 0

1. if age=18 then
2. either b=b-1
OR loop while b<5
3. either for i=1 to 10 step 2
OR for i=10 to 1 step -2

2007-09-23 03:20:03 · answer #2 · answered by baba 2 · 1 0

Just a quick question for us old timers.
Now that you have been furnished the answer
What do you do when asked how you got the answer.
When I went to school the answer, even though it was correct didn't matter as much as HOW YOU GOT IT.
Don

2007-09-23 03:31:11 · answer #3 · answered by Don M 7 · 0 0

fedest.com, questions and answers