Leap Year (If with Logical Operators)
As IF can be used for Decision making, here is an example of if and else to find out Given Year is Leap Year or
Pass or Fail( IF with Logical Operator && Example)
As earlier we have mentioned ‘if’ is used for decision making in Programming. Here is an example of ‘if’. We have also used Logical Operator
Factor Of Digit
Output
Simple Factorial
Output