Latest Blog

Program to Reverse a String without using strrev()
January 30, 2014 | No Comments

Whenever we are asked to reverse a string, we make use of inbuilt function- strrev (). Obviously, it is the easy method and we can use that. But sometimes, we are asked not to use the strrev (). This program helps to reverse a  String without  using strrev().

Read More

Program to Copy one String to Another string without using strcpy()
January 30, 2014 | No Comments

Whenever we are asked to write a program to copy one string to another string, we make use of inbuilt function- strcpy (). Obviously, it is the easy method and we can use that. But sometimes, we are asked not to use the strcpy (). This program helps to copy one String to Another string […]

Read More

C program to print diamond pattern
January 29, 2014 | No Comments

This code print diamond pattern of stars.  Diamond shape is as follows:   * *** ***** ***   *

Read More

C program to print Pascal triangle
January 29, 2014 | No Comments

Pascal Triangle is one of the most interesting number patterns. It is named after Blaise Pascal, a famous French Mathematician and Philosopher. To build the pascal triangle, we start with “1” at the top, then continue placing numbers below it in a triangular pattern. Each number is the two numbers above it added together except for the […]

Read More

Easy program to check input alphabet is vowel or not
January 29, 2014 | No Comments

This program checks whether an input alphabet is a vowel or not.  Both lower-case and upper-case are checked i.e a, A, e, E, I, i, o, O, u, U. #include <stdio.h> #include <conio.h>

Read More

Program for transpose of a matrix
January 29, 2014 | No Comments

Transpose of a matrix is the property to interchange rows and columns of matrix i.e row will become the column of resultant matrix and column will become the row of resultant matrix.

Read More

Program for multiplication of two matrices
January 28, 2014 | No Comments

This program computes multiplication of two matrices . In this we ask user to enter order or size  of matrix A then entered elements for matrix A, same procedure goes for  matrix B. But the multiplication does not yield the same process as in case of addition or subtraction of two matrices.

Read More

Program for subtraction of two matrices
January 28, 2014 | No Comments

In this program we compute subtraction of two matrices A and B which has same order. First we ask user to  enter order or size of matrix, then enter numbers for matrix A and B. In this elements of matrix B subtract from corresponding elements of matrix A . After that gives resultant matrix. To […]

Read More

Program for addition of two matrices
January 28, 2014 | No Comments

In this program we compute addition of two matrices A and B which has same order. First we ask user to  enter order or size of matrix, then enter numbers for matrix A and B. To understand the strategy, let us have  look at the dummy matrices. Suppose matrices have order 3×3.

Read More

Program to check a number is prime
January 28, 2014 | No Comments

A Prime Number is a number which can be divided only by 1 or by itself. And it must be a whole number greater than 1. No even number, except 2, is prime number as 2 is divided by 1 or 2 only i.e by 1 or by itself.

Read More