While-loop is a entry controlled loop.
It checks for test condition before entering the loop.
In this program, we check that if 'num' is not equal to 0.
While-loop is a entry controlled loop.
It checks for test condition before entering the loop.
In this program, we check that if 'num' is not equal to 0.
In this example simple example of for loop is given
By running loop variable 'i' from 1 to 5, we can its value also.
Bubble Sort is one of simplest sorting techniques in an array.
In this technique we compare element in hand with next element of array.
Pascal traingle is a pattern
1
11
121
1331
Displaying a pattern like this requires use of array.
An Array is a group of like-typed variables that are referred to bya common name.
Arrays offer a convenient means of grouping related information.
Multi-dimensional array is "Array Of Arrays".
This example shows the declaration of a 3-dimensional array and adding two 3*3 matrices.
This example shows that how to initialize an one dimensional integer array and how to sort it in ascending order.