if-else Statement in Java

if-else Statement in Java

Neso Academy

4 года назад

67,231 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@asadullah-Data-Engineer
@asadullah-Data-Engineer - 27.03.2023 21:23

Wat about the else - if

Ответить
@abdulazizsani7963
@abdulazizsani7963 - 27.10.2022 12:40

bro thank you so much you are the only reason i did't quit this

Ответить
@lifeisart5574
@lifeisart5574 - 09.12.2021 16:13

On which app do you program?

Ответить
@haroldgregconor1513
@haroldgregconor1513 - 06.04.2021 12:34

Man you are great but can u please chill don't teach to fast we can't catch up

Ответить
@rupeshpatil1099
@rupeshpatil1099 - 16.09.2020 13:32

👌👌👍

Ответить
@whattodonow503
@whattodonow503 - 25.08.2020 18:40

You are great bro!!

Ответить
@sanjayn6448
@sanjayn6448 - 13.08.2020 09:43

public class Main{
public static void main(String[] args){
Scanner a = new Scanner(System.in);
System.out.print("enter an integer:");

if (a.nextInt()%2==0)
System.out.println(a.nextInt()+" is even");
else
System.out.println(a.nextInt()+" is odd");

sir y is the above piece of code asking me two to enter a number twice??
please help me out
AND THANK YOU SO MUCH FOR YOUR LECTURES !!

Ответить
@whatsapwhatsapp662
@whatsapwhatsapp662 - 02.05.2020 23:40

thank you

Ответить
@samuel.r9759
@samuel.r9759 - 10.03.2020 16:17

Nice voice & thanks u teaching sir

Ответить