You want the output to be: one line of vertical bars, spaced so that they always appear above the 0 in the line of numb

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

You want the output to be: one line of vertical bars, spaced so that they always appear above the 0 in the line of numb

Post by answerhappygod »

You want the output to be: one line of verticalbars, spaced so that they always appear above the 0 in theline of numbers, then the line of numbers.You should define one constant in your code that you use to:1.) set the number of spaces between vertical bars.2.) set the sequence of numbers to restart at zero.If the value of your constant is 3, the output should looklike: | | |123012301230123 etc.
write in javascript
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply