This program shows how to convert an infix expression to postfix expression. Before proceeding to program, first understand what is difference between infix expression and postfix expression. Infix notation: X + Y. Operators are written in-between their operands. Postfix notation (also known as “Reverse Polish notation”) : X Y + . Operators are written after […]

Read MoreThe following program prints first 10 automorphic number. I am giving you all brief introduction about what actually automorphic numbers are, assuming that some of you might not be aware about that. In mathematics an automorphic number (sometimes referred to as a circular number) is a number whose square “ends” in the same digits as number itself. For example, 52 = 25, 62 = 36, 762 = […]

Read More/* Calculate Permutation and Combination (nCr and nPr) Using Function */ #include<stdio.h> #include<conio.h> void main()

Read More/* Fibonacci series using recursion */ #include<stdio.h> #include<conio.h> void main() {

Read More/* Program to draw pyramid of numbers displaying following Pattern */ /* 1 2 3 4 5 6 7 8 9 10 */

Read More/* Q. program to produce the following form of Floyd’s Triangle. 0 10 010 1010 */ #include<stdio.h> #include<conio.h> void main()

Read More/* This program read n value into array calculate reverse array and display all data in reverse order */ #include<stdio.h> #include<conio.h> void main() {

Read More/* HPSORT.C : PROGRAM TO CREATE A HEAP AND TO SORT A HEAP, HEAP IS STORED IN AN ARRAY */ #include<stdio.h> #include<conio.h> void crheap(int [], int); void processheap(int [],int);

Read More/* This program read a file entered by the user and displays its contents on the screen, fopen function is used to open a file it returns a pointer to structure FILE. FILE is a predefined structure in stdio.h . If the file is successfully opened then fopen returns a pointer to file and if it […]

Read More/* A number is armstrong if the sum of cubes of individual digits of a number is equal to the number itself. For example 371 is an armstrong number as 33 + 73 + 13 = 371. Some other armstrong numbers are: 0, 1, 153, 370, 407 */

Read More