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");
}
}
On this page of the site you can watch the video online class-10 NOT Condition | if else statement in java using Scanner with a duration of hours minute second in good quality, which was uploaded by the user java coding with BH 10 August 2022, share the link with friends and acquaintances, this video has already been watched 43 times on youtube and it was liked by 4 viewers. Enjoy your viewing!