My Blog
Articles related to programming, computer science, technology and research.

## C program for strong number

30/06/2016 Categories: Others. Comments Off on C program for strong number

C program to check whether the given number is strong number or not. Examples of strong numbers: 1, 2, 145, etc. Program is as follows:

Input and output for the above program is as follows:

## C program for perfect number

30/06/2016 Categories: Others. Comments Off on C program for perfect number

C program to check whether the given number is a perfect number or not. Examples of perfect numbers are: 6, 28, 496, etc. Program is as follows:

Input and output for the above program is as follows:

## C program to print prime numbers using Sieve of Eratosthenes

29/06/2016 Categories: Others.

This is a C program to print prime numbers in the range 1 to n using Sieve of Eratosthenes, which is said to be the most efficient algorithm for generating prime numbers. The program is as follows:

Input and output for the above program is as follows:

## C program to find the GCD of given two integers

29/06/2016 Categories: Others. Comments Off on C program to find the GCD of given two integers

A C program to find the GCD of given two integers. There is a restriction on the input. First number given as input must be greater than the second number. Example inputs can be: 48, 14 or 12, 4 etc. Program:

Input and output for the above program is as follows:

## C program to check whether the given number is an Armstrong number or not

06/05/2016 Categories: Others. Comments Off on C program to check whether the given number is an Armstrong number or not

Input and output for the above program is as follows:

## C program to print the multiplication table of a number n

06/05/2016 Categories: Others. Comments Off on C program to print the multiplication table of a number n

Input and output for the above program is as follows:

## C program to generate the first n terms of a Fibonacci sequence

06/05/2016 Categories: Others. Comments Off on C program to generate the first n terms of a Fibonacci sequence

Input and output of the above program is as follows:

## C program to find the sum of individual digits of a given positive integer and find the reverse of a given number

06/05/2016 Categories: Others. Comments Off on C program to find the sum of individual digits of a given positive integer and find the reverse of a given number

Input and output for the above program is as follows:

## C program which takes two integer operands and one operator from the user

06/05/2016 Categories: Others. Comments Off on C program which takes two integer operands and one operator from the user

Input and output for the above program is as follows:

## C program to find the roots of a quadratic equation

06/05/2016 Categories: Others. Comments Off on C program to find the roots of a quadratic equation

Input and output for the above program is as follows:

Scroll Up