Computer Science, asked by rishithasiri2445, 1 year ago

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 rohanbarnwal97
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
Similar questions