Here is the program with Single Dimension Array to find out sum of the elements in Single Dimension Array.
Here is the example for finding out the Maximum Value from a Single Dimension Array. Here we have an array of 7 elements and founded
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