У нас вы можете посмотреть бесплатно Decision making statement/Conditional Statements in java. Part 1 of 3 или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
I remove all less than and greater than sign from programs because this description box does not support angle brackets. If, if-else, if-else if, nested if and dangling else. Using relational and logical operator in if #if #ifelsestatement #ifelse #nestedif #nestedif #danglingelse #bluej #icse #computerapplication #decisionmaking #programs #tutorial #tutorials #java #javatutorialforbeginners #javatutorialsforbeginners #javaprogramming #syntax syntax of if syntax of elseif syntax of if else syntax of nested if logical and relational operator in if else import java.util.Scanner; public class If1 { public static void main() { int a; System.out.println("Enter a positive number"); Scanner sc=new Scanner(System.in); a=sc.nextInt(); if(a =0) System.out.println("Square root of " + a + " is " + Math.sqrt(a)); } } import java.util.Scanner; public class If2 { public static void main() { int a,b; System.out.println("Enter two numbers"); Scanner sc=new Scanner(System.in); a=sc.nextInt(); b=sc.nextInt(); if(a b) System.out.println(a); else System.out.println(b); } } import java.util.Scanner; public class If3 { public static void main() { int a,b; System.out.println("Enter two numbers"); Scanner sc=new Scanner(System.in); a=sc.nextInt(); b=sc.nextInt(); if(a b) System.out.println(a); else if(b a) System.out.println(b); else System.out.println("both are same"); } } import java.util.Scanner; public class If4 { public static void main() { int a,b, c; System.out.println("Enter three numbers"); Scanner sc=new Scanner(System.in); a=sc.nextInt(); b=sc.nextInt(); c=sc.nextInt(); if(a b) { if(a c) System.out.println(a); else System.out.println(c); } else { if(b c) System.out.println(b); else System.out.println(c); } } }