class-10 NOT Condition | if else statement in java using Scanner

Veröffentlicht am: 10 August 2022
auf dem Kanal: java coding with BH
43
4

NOT Condition | if else statement in java using Scanner |conditional programing | looping Statements

this is our channel link
   / @javacodingwithbh8291  

code of this class:
// NOT condition
// Not=!
// if(!(condition))
// false
// else
// true

import java.util.Scanner;


public class Topic3 {

public static void main(String[] args) {
// TODO Auto-generated method stub
int n;
Scanner sb=new Scanner(System.in);
System.out.println("enter the number");
n=sb.nextInt();
if(!(n==10))
System.out.println("ok");
else
System.out.println("not ok");
}
}


Auf dieser Seite können Sie das Online-Video class-10 NOT Condition | if else statement in java using Scanner mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer java coding with BH 10 August 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 43 Mal angesehen und es wurde von 4 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!