Determine if a number might be even
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
327 B

#!/usr/bin/env bash
declare -A colors=(
[red]=$(tput setaf 1) [green]=$(tput setaf 2)
[yellow]=$(tput setaf 3) [reset]=$(tput sgr0)
success() {
printf '%s%s%s\n' "${colors[green]}" "$1" "${colors[reset]}"
for num in {1..1000}; do
success "[>] Test $num/1000... ✓ passed."
success 'All tests successful!'