Write a program in visual basic to input an integer and display the next 10 integer.
Answers
Answered by
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
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
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
=> For a = 5 to 15
PRINT a
Next a
o==[]::::::::::::::::>OUTPUT ╭∩╮(︶︿︶)╭∩╮
5
6
7
8
9
10
11
12
13
14
15
Similar questions
Sociology,
7 months ago
Social Sciences,
7 months ago
English,
7 months ago
Science,
1 year ago
Chemistry,
1 year ago
Social Sciences,
1 year ago
Chemistry,
1 year ago