Computer Science, asked by raunit26hero, 1 year ago

Write a VB program to input an integer and display its next 10 integer

Answers

Answered by okaps
3
Using Pseucode (especially for C), and without storing user inputs:

counter = 0
res = 0
num = 0    //will have 

while counter < 10
    accept num
    if num%2 = 1    //checks if odd
        if num>res    //checks if greatest amongst numbers obtained so far
            res=num
    counter ++
end while
return res

Hope you understand !
Answered by trshukla
0
double click on the command button and write the code in the code window
private sub command 1_click ()
dim a, b, x as integer
a=Val(text 1.text)
b=Val(text 2.text)
x=a+b
label 3="sum of two number."=&x end the sub
close the code window and run the form to display the output
Similar questions