Monday, March 8, 2010

Write a C program to find the greatest common divisor (GCD) of the two given positive integers.

Solution :- http://cprogramskills.blogspot.com/2010/03/write-c-program-to-find-greatest-common.html

Write a C program that prints a given positive integer in reverse order and also sum of the individual digits involved in the given integer.

Solution : http://cprogramskills.blogspot.com/2010/03/write-c-program-that-prints-given.html

Write a C program to find the commission on a salesman's total sales

The commission on a salesman’s total sales is as follows:


a) If sales <100, then there is no commission.

b) If 100>=sales <=500, then commission = 10% of sales.

c) If sales > 500, then commission = 100+8% of sales above 500.


Solution:  http://cprogramskills.blogspot.com/2010/03/write-c-program-to-find-commission-on.html

Thursday, November 26, 2009

List of Pyramids

A B C D E F G G F E D C B A
A B C D E F F E D C B A
A B C D E E D C B A
A B C D D C B A
A B C C B A
A B B A
A A

Click here : Pyramid-1

A B C D E F G F E D C B A
  A B C D E F E D C B A
    A B C D E D C B A
      A B C D C B A
        A B C B A
          A B A
            A 

Click here : Pyramid-2

Sunday, November 15, 2009

Write a C program to find the roots of a quadratic equation using Pointers and Functions.

Click below:

Write a C function that defines two strings as parameters, as follows, and checks whether the second string (str2) is a substring of the first one (str1).

Click below:

Write a C program to merge two unsorted one dimensional arrays in descending order

Click below:

Write a C program to print the Given pyramid

      1

    1 2 
   1 2 3 
  1 2 3 4
 1 2 3 4 5
  .
  .
  .
  n

Click below:-

Write a C program to get the maximum and minimum values of a Data type

Click below:

Write a C program to Sort the list of integers using Bubble Sort

Click below:

Write a C program to find gcd of each of the two consecutive elements of an array. write a function GCD(a,b) that would take two consecutive elements of the array as arguments and return the GCD.

Click below:

Write a C program to Create a Paint brush using graphics functions

Click below:

Write a C program to display the message "Welcome to C" without a Semicolon.

Click below:

Write a C program to display the System date and Change the system date if necessary.

Click below:

Write a C program to check whether the given number is single digit or more

Click below:

Write a program in c to accept any character and check whether the given character is capital or small using Ctype.h library file

Click below:

Write a program in c to accept any character and check whether the given character is capital or small

Click below:

Write a C program to print all Armstrong numbers between 1 to 1000.

Click below:

Write a C program to delete an element from the array.

Click below:

Write a C program to Insert an element at the 'n' th position

Click below:

Write a C program to print all Combinations of characters A, B, C

Click below:

Write a C Program to find HCF (GCD) between two numbers using Goto statement

Click below:

Write a C program to find the roots of a Quadratic equation using if -else ladder and goto statement

Click below:

Write a C program to Convert any Decimal number into Binary coded decimal

Click below:

Write a C program to Calculate the sum of the series sum=1+1/x+1/x2+1/x3+...........+1/xn

Click below:

Write a c program to obtain the Sum of the first and last digit of the number, if a four digit number is inputted through the keyboard

Click below:

Write a C program to convert Fahrenheit degrees into Centigrade and Vice-Versa

Click below:

Write a C program to check whether the given number is positive, negative or zero

Click below:

Write a C program to find the greatest number between four numbers using if-else ladder

Click below:

Write a 'C' program to perform the selected arithmetic operation by taking two integer values using Switch Statement

Click below:-

Write a Program to print a Histogram showing the frequencies of different word length

Click below:

Write a C program to find the factors of a given integer.

Click below:

Write a C program to generate the Fibonocci series using Recursion.

Click below:

Write a C program to determine the given integer is Palindrome or not.

Click below:

Write a C program to calculate the sum of factors of a number.

Click below:-

Write a C program to detect whether the given integer is Armstrong number or not.

Click below:

Write a C program to check whether the given integer is Magic number or not.

Click below:

Write a C program to determine the given integer is Perfect number or not.

Click below:

Write a C program to check whether the given integer Prime number or not.

Click below Link:-

Write a C program to solve the Towers of Hanoi problem using Recursive function.

Click below Link:-

Write a C program to find the GCD (greatest common divisor) of two given integers using Recursive function.

Click below Link:-

Write a C program to find the GCD (greatest common divisor) of two given integers without using recusive function

Click below Link:

Write a C program to delete n Characters from a given position in a given string.

Click below link:

Write a C program to insert a sub-string in to given main string from a given position.

Click below link:

Write a C program to read in two numbers, x and n, and then compute the sum of this geometric progression: 1+x+x2+x3+………….+xn

Click below link:

Write C programs that use both recursive and non-recursive functions to find the Write C programs that use both recursive and non-recursive functions to find the factorial of a given integer.

Click below link:

Write a C program to construct a pyramid of numbers.

/*
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
*/

Click below link: