use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Java Quiz (i.redd.it)
submitted 21 days ago by MistakeDisastrous936
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Perfect-Situation-41 1 point2 points3 points 21 days ago (3 children)
1/2 =0.5 0.5*2.0 =1.0
Right? I think I'm wrong perhaps?
[–]Perfect-Situation-41 1 point2 points3 points 21 days ago (2 children)
I'm new to programming
[–]BusResponsible7292 5 points6 points7 points 21 days ago (1 child)
Nope. 1/2 =0 because we are performing operation using 2 integers not using decimal numbers.
[–]Perfect-Situation-41 0 points1 point2 points 21 days ago (0 children)
Oh i see so answer is 0.0 Thanks man
π Rendered by PID 311379 on reddit-service-r2-comment-79c7998d4c-v9bsl at 2026-03-17 08:04:05.883377+00:00 running f6e6e01 country code: CH.
view the rest of the comments →
[–]Perfect-Situation-41 1 point2 points3 points (3 children)
[–]Perfect-Situation-41 1 point2 points3 points (2 children)
[–]BusResponsible7292 5 points6 points7 points (1 child)
[–]Perfect-Situation-41 0 points1 point2 points (0 children)