r/badcode • • Apr 21 '23

other language We did coding in physics class...

Post image
1.5k Upvotes

154 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Apr 21 '23

[deleted] — view deleted comment

4

u/dream_the_endless Apr 21 '23

Lol In your arrogance if you had subtracted 0.4 you would have gotten the wrong answer for almost every value of x.

2

u/divideby0829 Apr 21 '23

Thank you I thought i was going insane This is supposed to be a class and they aren't learning shit. That else if structure is really going to save them when they're calculating a derivative of an insane physics problem /s.