Saturday, March 1, 2014

To find the largest number from the list of the entered numbers using array


In this page  I have written the program to find the largest of the entered numbers using array. I have used swapping to get the descending order and then have displayed the number at 0 position. For more idea lets have a look for the source code and the output of the following program.





To find out the numbers that are divisible by one number and not by another number using array.



In this page I have written the program to find the numbers that are divisible by one number and not by another number. For more information

To print the pattern of rectangle entering the desired rows and columns


In this I have written the program to print the pattern of rectangle using loop. For more idea the souce code has been given below:

To find the sum of the entered number using function only


In this page I have written the program to find the sum of the entered number using function but not recursion:
It can be done in this way:

To find the sum of the number entered using recursive function


In this page I have written the program to find the sum of the number entered using function. Lets take an example to be clear how the program works.

WAP to enter the values for matrix and display them in matrix form.


In this program I have used array to enter the values and display the values in matrix form. I will elaborate how the program works on the basis of the example given below: