1)Write a program in Visual Basic to input a integer and display the next 10 numbers. 2)Write a program in Visual Basic to input two numbers and find the greater number.
Urgent!!!!Pls reply fast!!!
Answers
Answered by
16
1. Dim n as integer
n= inputbox("enter the value for n',"form1")
lbloutput.text="the series is:"
for value as interger=0to n
lbloutput.text=lbloutput.text & value & ""
next
2.Dim a,b as integer
a=value(textbox 1.text)
b=value (textbox 2.text)
if (a>b) then
msgbox("largest number is first one")
else
msgbox ("largest number is second one")
end if
n= inputbox("enter the value for n',"form1")
lbloutput.text="the series is:"
for value as interger=0to n
lbloutput.text=lbloutput.text & value & ""
next
2.Dim a,b as integer
a=value(textbox 1.text)
b=value (textbox 2.text)
if (a>b) then
msgbox("largest number is first one")
else
msgbox ("largest number is second one")
end if
Similar questions
Computer Science,
6 months ago
Biology,
6 months ago
Computer Science,
6 months ago
Chemistry,
1 year ago
Chemistry,
1 year ago
Biology,
1 year ago