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
From Basic to the Best
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
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
As we have learnt so many Pattern Programs using C Language, Now We are going to explain a Pattern Program of Multiple Pyramid using Java
C language supports jump statement like ‘goto’. You can conditionally jump to any line for execution in C Language using goto statement. You have to
As an alternate of if..else in some cases we can use switch.case. Switch case is also a decision making control. We can use Switch.. case with Integral Data Type (int/char/short etc..) only, Switch case not be
There is a special operator ‘?’ (called Conditional or ternary) in C Language that is used like if. Syntax Example Here if x is greater
For Decision making we can use if statement in C Language. If statement is used for conditional execution of statements. Basic Syntax of is: Now