Java if-Else hackerrank solution | Java if-Else | codedecks

preview_player
Показать описание
java if-Else hackerrank solution
java if-Else hackerrank
how to solve java if else hackerrank problem
codedecks

This is 2nd video from the series - Tips n Tricks for Competitive Programming

If you haven't check 1st video of this series I will recommend to go n watch it as I have covered some pre-requisites which will be useful in following series.

This is the 3rd problem from java hackerrank in which if-else concepts is tested.

This problem will test your knowledge of using if-else conditional statements to automate decision-making processes.

Go through this link if you are not aware of if-else concepts

Refer to the code solution which has been explained in this video

Like | Share | Subscribe to codedecks

Happy Learning !!!

Chapters:
0:00 Intro
1:00 if-else logical flow
2:03 Input & Output Format
3:30 Java Solution
5:55 Run code

#codedecks #codedeckscompete
Рекомендации по теме
Комментарии
Автор

Increase Playback speed to 1.25x if you are having issues because of slowness.
Thanks 😁

codedecks
Автор

once I hear the indian accent, I already know the guide is gonna be good

joebob
Автор

Sir, why it shows an error when we ru code with 2<=N<=5

Vedhavarsha
Автор

sir, here why don, t we check whether the else if condition is even and why cant we write 2<=N<=5

Bavasharan
Автор

Sir why is it showing error if we take small n instead of capital N?

ms.green_lev
Автор

hi i wrote the same logic but it is showing wrong answer.?

harishks.kumar.
Автор

Same code is working properly in test second but failed in 1 one please may you help me ?

vaishnavichouhan
Автор

thank u so much sir but i question what is scanner.skip statment ?

piyushthakur
Автор

this code have some error because the fourth condition is not satisfied we have to add one more else if to check for the number greater than 20

shwetathakur
Автор

Idk why but all the test cases are failed.Please help me

himashanethmini