 ## Shorting of elements in c programing using bubble short.

firstly , we need to know about bubble short . what is happening during bubble shorting. >>> In Bubble short elements of one position is compare to the next position and arrange the elements whatever we want. Here is the source code example for bubble short. Output: Explanation: 1.firstly , Continue Reading

## C program to check the give number is prime or not?

Before know the source code we need to understand the concept about primat number . what is prime number? >>The number which is only divisible by 1 or itself. or >>The number which do not come in others numbers multiplication table . To check the given number is prime ,firstly Continue Reading

## C program to check the number is even or odd.

There are many ways to check the given number is even or odd in c program .the simple way to check is by if condition and switch statement. Here we will check by both the process. process 1 by using simple if statement: main() { int a,b; printf(“enter a number\n”); Continue Reading

## c program to find sum of the digits

To find sum of the digits firstly,we have to separate all the digits of the number and the converted that digit into number. In ordered to separate the digits of a number ,we use ( number%10 ) expression and converted these digit into number we use (num=s*num+num%10) expression.but the value Continue Reading ## C program to check string palindrome.

Firstly let us understand what is palindrome? >>The order of number or string after reverse is in same order ,then we can say the number or string is palindrome. let understand by a simple example, x=mom after reversing these stringr we get mom,then we can say the given string is Continue Reading

## c program to calculate factorial of given number.

firstly ,let us understand the concept of factorial number. The product (multiplication) of all positive integers less than or equal to n is called factorial number.and it is denoted by n!. eg. factorial of 5=5*4*3*2*1=120 To find factorial number .The code is given below. main() { int a,i,fac; fac=1; printf(“\t\twrite a no. to calulate Continue Reading ## C programm to calculate fabonacci series

what is fabonacci series? The series of number obtained by adding previous two preceding number is called fabonicci series. To calculate these series of number .The code is given below. main() { int a=0,b=1,c; while(b<20) { printf(“%d\t”,b); c=a+b; a=b; b=c; } } Output Explanation: 1.first,The initial value of a=0,b=1 is Continue Reading