The name of your C program file must be called multiply.c, files with any other name will not be marked.
You are expected to spend a maximum of 2 hours for this assignment.
But kids must learn long multiplication the long way. Nemo has totally forgotten how to do it; so he asks you to write a program that shows long multiplication.
Here are two sample runs of the program that Nemo wants. Note that $ indicates the Unix prompt, and you are reminded to follow the sample runs exactly, else marks will be deducted. User input is underlined.
$ gcc -Wall multiply.c -o multiply
$ ./multiply
Enter two integers to multiply: 9876 5432
9876
x 5432
---------
49380
39504
29628
+ 19752
---------
53646432
---------
$ ./multiply
Enter two integers to multiply: 2345 608
2345
x 608
---------
0
14070
0
+ 18760
---------
1425760
---------
$
Let's look at the first example:
A total of 32 different hosts have accessed this document in the last 556 days; your host, 216.73.216.129, has accessed it 2 times.
If you're interested, complete statistics for this document are also available, including breakdowns by top-level domain, host name, and date.