11/2002
dgi productions presents
MY C ASSIGMENTS
In this pgae you will find all the stupid assigments I was made to submit.
Please go away... dont view them...
All can be compiled with gcc, and were copmiled like this:
gcc --ansi --pendantic file.c -o file
They can be compiled also with TurboC and that shit from Microsoft (well
I hope it does not... :-)
Since I am learning perl, I may have also perl verions of thos programs here.
Enjoy.
- Assigment1
- This program asks
for two numbers and then prints the equation ax2+bx+c = 0 which
those 2 numbers are it's roots.
- The second is a
messed up program which I needed to correct;
- Assigment 2
- This programs gets
3 number from a stdin which represent: day, month, year. Then it looks for
the day after, and finally prints on stdout the day of the week of that day.
The algoruthm for the day of week was stollen from TV demos in TP7.
- This program gets
a number from stdin, and then prints the n'th prime number (when n is the
number which was gotten from stdin).
- Assigment 3
- This program gets a char,
number, char and another number. The first char desctibes what to show on
the screen and the other input is an arythmetic exporession. Look at the
code for more info.
- This program gets from
stdin a number and computes it's multipliers.