Assignment 3
Assignment 3
./a.out >result.txt
Otherwise you may use the redirection for the standard input file,
such as,
./a.out <input.txt
For both reading from a file and writing to a file use the following.
If you execute the program multiple times, you may concatenate the
outputs in a single file by using the following redirection command:
./a.out >>result.txt
or
*
**
***
****
*****
******
*******
********
*********
**********