How can I show the next 15 odd numbers of for example number 10 ?
Lida_pink
0
Newbie Poster
Recommended Answers
Jump to PostUse the Mod Function to determine if input number is odd or not.
If not, add 1 to number.
Use for loop from 1 to 15 and a variable that is incremented by two with each iteration of the loop.
Take the value from the variable and concatinate into a …
Jump to PostPlease post your code that you are working on. Our experts will advice you to improve the same. Don't expect the complete code.
All 7 Replies
vb5prgrmr
143
Posting Virtuoso
Lida_pink
0
Newbie Poster
debasisdas
580
Posting Genius
Featured Poster
vb5prgrmr
143
Posting Virtuoso
aka_amboy
0
Newbie Poster
gian10890
0
Newbie Poster
Lida_pink
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.