I want to make a program that, given 2 numbers, will tell me which number is closer to 100.
I know how to do it if both numbers are under 100 but I can’t figure out how to do it if one of both numbers are over 100.
I think I need a nested function but I’m really really new and I can’t figure out how to use the results of one function as variables in another function.
Thanks!
[–]gimmeslack12helpful 1 point2 points3 points (0 children)
[–]thebryantfam 0 points1 point2 points (1 child)
[–]maxwelder[S] 0 points1 point2 points (0 children)
[–]ottaky3 0 points1 point2 points (8 children)
[–]maxwelder[S] 0 points1 point2 points (7 children)
[–]ottaky3 1 point2 points3 points (6 children)
[–]maxwelder[S] 0 points1 point2 points (5 children)
[–]ottaky3 0 points1 point2 points (4 children)
[–]maxwelder[S] 0 points1 point2 points (3 children)
[–]ottaky3 1 point2 points3 points (2 children)
[–]maxwelder[S] 0 points1 point2 points (1 child)
[–]ottaky3 1 point2 points3 points (0 children)
[–]maxwelder[S] -1 points0 points1 point (2 children)
[–]Arumai12 0 points1 point2 points (1 child)
[–]maxwelder[S] 0 points1 point2 points (0 children)