Write a shell script to print 1-10 numbers using a for loop (c style for loop)
an anonymous user
·
Bash
#!/bin/bash read -p "Enter a number : " number for ((i=1; i<=10; i++)) do echo "$i" done
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.