Friday, February 28, 2014

To find the largest of the three numbers entered


In this page  I have written the source code to find the largest of the three numbers entered.
Lets take an example. If we enter 5 9 3 as the three numbers then 9 will be displayed largest.
For more idea

To find smallest of the three numbers


In this page I have written the source code to find the smallest of the three numbers entered.
For example if 5,6 and 7 are entered by the user then 5 will be displayed smallest. For more idea

To find whether the number entered is prime or not


I have written the simple source code to find whether the entered number is prime or not.
For this we have to know what is prime number.

To find the total sum upto the entered number using recursive function


In this program I have used the recursive function to find the total sum upto which the number user enters. For example if  the user enters 10.

Wednesday, February 26, 2014

To find the hcf between two numbers using recursion function


In this program I have given the concept of finding the hcf between two numbers using function.
The highest common factor of integers x and y is the largest integer that evenly divides both x and y.
The main points to be remember while doing this program is:

Use of switch statement


Switch statement is mainly used

To print the pattern in triangular shape using string


In this programme I have used string to print the pattern of triangle.
For this