Become Our Fan on Social Sites!

Facebook Twitter

Google+ RSS YouTube
Showing posts with label c-language. Show all posts
Showing posts with label c-language. Show all posts

Friday 27 September 2013

C program to find string length

1) Find length of string in c language using pointer

Program to check a year is a leap year or not

C Program to check that given year is leap year or not in C language

Thursday 26 September 2013

C program of maximum of three numbers

1) Find maximum of three numbers using if condition

Program to print numbers from 1 to 100 without using loops

Following program prints numbers from 1 to 100 without using loops

Print ASCII values of all characters in C language

ASCII stands for American Standard Code for Information Interchange. There are 128 standard ASCII characters from 0 to 127. Extended ASCII characters adds more 128 values and goes to 255. Following is a program of printing ASCII value using C language.

C program for to check odd or even number

Even Number : If we divide number by 2 and remainder is 0 is called Even Number.

Odd Number : If we divide number by 2 and remainder is 1 then that number is called Odd Number.  

Reverse the digits of a given number in C language

Reverse Number:  If you enter 789 as input then gives output as 987. Reverses the digits of a given number. Following is a source code of reverse the number in c language.

C Program To Find Out Sum Of Digits Of Given Number

Sum of digits : If you enter number like 234 then output is 9 (2+3+4). That is sum of all digits of entered number. Following C program find out sum of digits of given number.

Armstrong number using C language

Armstrong Number: If the sum of cubes of individual digits of a number is equal to the number itself is called Armstrong Number. For Example 371 is an Armstrong number that means 33 + 73 + 13 = 371 that is number itself. Some Armstrong numbers are: 0, 1, 153, 370, 371, 407.

Wednesday 25 September 2013

Factorial program in c language

Factorial Number: For example Factorial of 5 gives 120 as output, that means 5! =  5*4*3*2*1 (120).

Tuesday 24 September 2013

swapping or interchange values of two variables in c language

1) Swapping using temporary variable in c language

Sunday 22 September 2013

Prime Number Program : Find Prime Number Using C Language

Prime Number : A positive number which is divisible by 1 and number itself is knows as prime number.

For example 7 is prime number because it is divisible by only 1 and number itself(7). While 14 is not prime because it is divisible by 1,2,7, and 14 itself. 

Following is a program of prime numbers in c language:

Wednesday 18 September 2013

Fibonacci Series using for loop and recursion

Following are different versions of fibonacci series program. First program uses looping structure and second program uses recursion.