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");
}
}
Sur cette page du site, vous pouvez voir la vidéo en ligne class-10 NOT Condition | if else statement in java using Scanner durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur java coding with BH 10 août 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 43 fois et il a aimé 4 téléspectateurs. Bon visionnage!