English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

what is a program that can start at 1 and go to 999 pushing enter each time.

2006-11-05 14:06:21 · 1 answers · asked by Harezichi 2 in Computers & Internet Programming & Design

1 answers

Personally I'd do it as a shell script like:

#!/bin/bash

export counter=1

while test $counter -lt 1000
do
echo $counter
export counter=`expr $counter + 1`
done

It's simple enough and you just redirect the output to a file or to your program.

2006-11-05 14:26:34 · answer #1 · answered by juliepelletier 7 · 0 0

fedest.com, questions and answers