In linux! 1. Write a shell script is_equal that takes a number as input and checks if it is equals to 10, greater than 1

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

In linux! 1. Write a shell script is_equal that takes a number as input and checks if it is equals to 10, greater than 1

Post by answerhappygod »

In linux!
1. Write a shell script is_equal that takes a number as input
and checks
if it is equals to 10,
greater than 10 and less than 10.
2. Write a shell script print_num that takes a number as input and
use
while loop to print values
decreasing order. ex. input=10, output: 10 9 8 7 6 5 4 3 2 1
3. Write a shell script display_even_digits that takes a number as
input
and use while loop to
display all the even digits within that number. ex input: 10
output: 2 4 6
8 10
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply