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

To find the largest of the four numbers entered by using function


In this programme I have given  the concept to find the largest of the four numbers using function.
The main source code of the program is given below :

A program to print floyd's triangle


A floyd's triangle is an right angled triangular array of natural numbers. It is defined by filling the rows of the triangle

To find binary equivalent of the decimal number


In this program I have given the concept to convert binary number into decimal number.
For example

To find the factorial of the entered number


In this programme I have given the concept to find the factorial of the number.
For this we have to know what factorial is:

To find all the armstrong numbers between n1 and n2


In this programme I have given the concept to find the armstrong number between n1 and n2.
For this in this programme I have taken n1 as 100 and n2 as 2000. You can take any positive number in place of n1 and n2. If you want to be more clear

To find whether an entered number is armstrong or not


In this programme I have given the concept that whether the input number is armstrong or not.
For this we have to be clear about what the armstrong number is:
I will make clear about it by the help of example:

Tuesday, February 25, 2014

To check whether a number is prime or composite using recursive function


In this page I have kept the concept of checking whether a number is prime or composite using recursive function.However 1 is neither prime nor composite but in this programme 1 has been shown as composite. The source code of this programme is

To find the cube of the number using recursion function


In this page I have given the concept how to find the cube of the number entered using recursion.
The main point to remember is :

To find the area of circle using recursion function


In this programme I have given you the concept how to find the area of the circle using recursion function. I have used integer data types so the area of the circle will be displayed as the integer only.
If you use float as data type

Write a program to find hcf between two numbers


In this program I have added how to find hcf using recursion function.For this first of all we should be clear about what hcf means. It means highest common factor. For example the hcf of 4 and 24 is 4 and the hcf of 4 and 5 is one. For clear concept

Monday, February 24, 2014

To find descending order of the number entered


In this programme I have given you the some concept how to arrange the the number in descending order. For this I have put one example in front of you:
The source code of this programme is :

To pass one dimensional array to function


If we want to pass one dimensional array into function it can be done in this way I have taken examples of finding average of the sum of the numbers entered. In this programme i have taken numbers myself without using scanf.

To find factorial of the number using recursion


If we want to find the factorial of any num using recursion theorem&nbsp; this can be done in this way:<br />
for eg factorial of 5=5*4*3*2*1 <br />

Write a program to find x to the power of y using recursion


If we want to find x to the power of y using recursion then it can be done in this way.