C Program to check whether a given 5 digit number is palindrome or not

C program to check whether a given 5 digit number is palindrome or not. Palindromic number is a number that remains same, when it is reversed or can be read in the same way in either direction.
Example:12321, 23132… Read more about C Programming Language .

Read more Similar C Programs
Learn C Programming

Number System

You can easily select the code by double clicking on the code area above.

To get regular updates on new C programs, you can Follow @c_program

You can discuss these programs on our Facebook Page. Start a discussion right now,

our page!

Share this program with your Facebook friends now! by liking it

(you can send this program to your friend using this button)

Like to get updates right inside your feed reader? Grab our feed!

(c) www.c-program-example.com

C Program to find whether the given year is leap or not.

C Program to find whether the given year is leap or not. Leap year is a year, which is containing one extra day, i.e 366 days. In the leap year February contains the date 29. Read more about C Programming Language .

Read more Similar C Programs
Learn C Programming

Number System

You can easily select the code by double clicking on the code area above.

To get regular updates on new C programs, you can Follow @c_program

You can discuss these programs on our Facebook Page. Start a discussion right now,

our page!

Share this program with your Facebook friends now! by liking it

(you can send this program to your friend using this button)

Like to get updates right inside your feed reader? Grab our feed!

(c) www.c-program-example.com

C Program to generate n Fibonacci terms using array declaration.

Example programs to solve the problems of Arrays in C,
C Program to generate n Fibonacci terms using array declaration. Fibonacci numbers are sequence of numbers starts from 0 and 1 , continue by adding previous number.
Example: 0,1,1,2,3,5,8,13,…….. Read more about C Programming Language .

Read more Similar C Programs
Array In C
Number System

Simple C Programs

You can easily select the code by double clicking on the code area above.

To get regular updates on new C programs, you can Follow @c_program

You can discuss these programs on our Facebook Page. Start a discussion right now,

our page!

Share this program with your Facebook friends now! by liking it

(you can send this program to your friend using this button)

Like to get updates right inside your feed reader? Grab our feed!

(c) www.c-program-example.com

C Program to convert a given decimal number into its binary equivalent

C Program to convert a given decimal number into its binary equivalent. In this program we convert the given decimal based number system(0, 1, 2, 3, —–,9) to Binary number system(0 and 1). Read more about C Programming Language .

/***********************************************************
* You can use all the programs on www.c-program-example.com
* for personal and learning purposes. For permissions to use the
* programs for commercial purposes,
* contact [email protected]
* To find more C programs, do visit www.c-program-example.com
* and browse!
*
* This program was originally published at
* http://www.c-program-example.com/2011/09/you-can-use-all-programs-on-www_8419.html
* Happy Coding
***********************************************************/
/* Write a program to convert a given decimal numbers into its binary equivalent . */
#include<stdio.h>
int main()
{
int num,i=0,binary=0,num1, biny[30],counter=0;
printf("Enter the Decimal number:\n");
scanf("%d",&num);
num1=num;
do
{
binary=num%2;
biny[i]=binary;
num=num/2;
i++;
counter++;
} while(num>0);
printf("\nThe given decimal %d number binary equalant is :\n",num1);
counter--;
while(counter>=0){
printf("%d" ,biny[counter]);
counter--;
}
return 0;
}

Read more Similar C Programs
Array In C

Number System

Simple C Programs

You can easily select the code by double clicking on the code area above.

To get regular updates on new C programs, you can Follow @c_program

You can discuss these programs on our Facebook Page. Start a discussion right now,

Share this program with your Facebook friends now! by liking it

Like to get updates right inside your feed reader? Grab our feed!

(c) www.c-program-example.com

C Program to find the array c such that c[i] = a[i ]+ b[n-1-i]

Example programs to solve the problems of Arrays in C,
a and b are two integers arrays each with n elements. C program to find the array c such that c[i]=a[i]+b[n-1-i]. Read more about C Programming Language .

/***********************************************************
* You can use all the programs on www.c-program-example.com
* for personal and learning purposes. For permissions to use the
* programs for commercial purposes,
* contact [email protected]
* To find more C programs, do visit www.c-program-example.com
* and browse!
*
* Happy Coding
***********************************************************/
/*a and b are two integers arrays each with n elements.
Write a program to find the array c such that c[i]=a[i]+b[n-1-i] */
#include<stdio.h>
int main() {
int a[20], b[20], c[30], i, n;
printf("Enter the number of elements to the array:\n");
scanf("%d", &n);
printf("\nEnter the %d elements to the array A:\n", n);
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
printf("\nEnter the %d elements to the array B:\n", n);
for (i = 0; i < n; i++) {
scanf("%d", &b[i]);
}
for (i = 0; i < n; i++) {
c[i] = a[i] + b[n - 1 - i];
}
printf("\nC array elements are:\n");
for (i = 0; i < n; i++) {
printf("\n");
printf("%d", c[i]);
}
return 0;
}
view raw find_array.c hosted with ❤ by GitHub

Read more Similar C Programs
Array In C

Simple C Programs

You can easily select the code by double clicking on the code area above.

To get regular updates on new C programs, you can Follow @c_program

You can discuss these programs on our Facebook Page. Start a discussion right now,

 our page!

Share this program with your Facebook friends now! by liking it

 (you can send this program to your friend using this button)

Like to get updates right inside your feed reader? Grab our feed!

(c) www.c-program-example.com