-
Build a program that reads a set of numbers from the command-line
and prints these numbers together with their
sines and cosines (in a table form)
to the standard output. Something like
mono read-cmdline.exe 1 2 3 4 5 > out.txt
or
mono read-cmdline.exe $(cat input.txt) > out.txt
-
Build a program that reads a set of numbers from
the standard input and prints these numbers
together with their
sines and cosines (in a table form) to the standard output.
Something like
echo 1 2 3 4 5 | mono read-stdin.exe > out.txt
or
mono read-stdin.exe < input.txt > out.txt
cat input.txt | mono read-stdin.exe > out.txt
-
Build a program that reads a set of numbers (separated by newlines)
from "inputfile" and writes them together with their cosines
(in a table form)
to "outputfile". The program must read the names of the "inputfile" and
"outputfile" from the command-line.
Something like
mono read-file.exe input.txt out.txt