c-mondays:assignments:first
First assignment for C-monday
Make a calculator in C programming language You can take 2 approaches
- first - closer to the desktop apps, where after running the program, you write <number> <space> <operator> <space> <number>
- second - you utilise argc and argv to write the number and operand while executing
./calculator
First tier
- enum + switch, parsing the operator while removing whitespace around it
- float parsing (atoi)
Second tier
- Proper float operations, check in most languages, what happens with
0.1 + 0.2. Utilise libc strtof and strtod
c-mondays/assignments/first.txt · Last modified: by zachary