Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 321 Bytes

factors.md

File metadata and controls

9 lines (6 loc) · 321 Bytes

Shell Scripting - Factors

Objectives

Write a script that when given a number, will:

  • Check if the number has 2 as factor, if yes it will print "one factor"
  • Check if the number has 3 as factor, if yes it will print "one factor...actually two!"
  • If none of them (2 and 3) is a factor, print the number itself