Conditional or Ternary Operator in java programming 2

Published: 21 June 2020
on channel: Computer Skills
3
0

In this tutorial you will learn the working of Conditional or Ternary operator and you will learn message printing along with ternary operator within a printing statement.

Exercise
1. Write a program to enter selling price and cost price of an item and check whether seller has made profit or loss.
2. Write a program to enter a number and check whether number is even or odd. Number divisible by 2 is even otherwise odd.
3. Write a program to enter a number and check whether number is positive or negative. Number greater than 0 is positive.
4. Write a program to enter a year and check whether it is leap year or not. Year divisible by 4 is leap year.
5. Write a program to print commission of an employee, If annual salary of an employee is more than 1 lack then his commission will be 10% else commission will be 5% of annual salary.

#computerskills #programmingera #java #javaprogramming #javatutorial #javatutorialforbeginners #learnjava #javafullcourse #javaforbeginners #javaonlinetraining #javaonlinetutorial #javaonlineclasses #corejava
#operator #conditionaloperator #ternaryoperator #unaryoperator #binaryoperator #relationoperator #bitwiseoperator

Visit our blog for complete chapter
https://computereducation123456789.bl...
My second channel (Programming Era)
   / @programmingera7667  

Conditional Operator other videos

Conditional or Ternary Operator in Java programming 1
   • Conditional or Ternary Operator in Ja...  

Conditional or Ternary Operator in java programming 2
   • Conditional or Ternary Operator in ja...  

Nested Conditional Operator in java programming 3
   • Nested Conditional Operator in java p...  

Java programming introduction other videos

Part 1 Java Programming Language Introduction
   • Part 1 Java Programming Language Intr...  

Part 2 Printing Demo in Java Programming
   • Part 2 Printing Demo in Java Programming  

Part 3 Printing Demo with variable in Java Programming
   • Part 3 Printing Demo with variable in...  

Part 4 Printing in Java Programming by Printf function
   • Part 4 Printing in Java Programming b...  

Part 5 Reading Data By BufferedReader and DataInputStream in Java Programming
   • Part 5 Reading Data By BufferedReader...  

Part 6 Reading Data By Scanner Class in Java Programming
   • Part 6 Reading Data By Scanner Class ...  

Part 7 Reading Data By Command Line Arguments
   • Part 7 Reading Data By Command Line A...  

Part 8 A simple program in java programming
   • Part 8 A simple program in java progr...  

Part 9 Simple program using Math class in java programming
   • Part 9 Simple program using Math clas...  


Watch video Conditional or Ternary Operator in java programming 2 online without registration, duration hours minute second in high quality. This video was added by user Computer Skills 21 June 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3 once and liked it 0 people.