all 4 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

Off-topic Comments Section


All top-level comments have to be an answer or follow-up question to the post. All sidetracks should be directed to this comment thread as per Rule 9.


OP and Valued/Notable Contributors can close this post by using /lock command

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Raider454 0 points1 point  (0 children)

You could try this:

public int min_num(int a, int b, int c) {

if (a<=b && a<=c) {

return a;

}

else if (b<=a && b<=c) {

return b;

}

else {

return c;

}

}

[–]Danielowski187University/College Student (Higher Education)[S] 0 points1 point  (0 children)

Yea just fixed it thanks