Computer Science, asked by aryangupta2434, 1 year ago

Write a program in visual basic to input an integer and display the next 10 integer.

Answers

Answered by sabilasiddiqui46
0
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
Answered by sangeeta84
2
let's take next 10 integer from 5 to 15!!!-

=> For a = 5 to 15
PRINT a
Next a

o==[]::::::::::::::::>OUTPUT ╭∩╮(︶︿︶)╭∩╮


5
6
7
8
9
10
11
12
13
14
15
Similar questions