Program Library



Program Collections


Simple
  1. Write a program to print ' HELLO WORLD!!! '.
  2. Write a program to print average of  three numbers.
  3. Write a program to find the sum and average of three numbers.
  4. Write a program to print a pyramid of stars.
  5. Write a program to convert the time entered in seconds to hours,minutes,seconds.
  6. Write a program to print the size of each datatype with its name in a table.
  7. Write a program to find the hexal and octal value of a number.
  8. Write a program to print the area and perimeter of a triangle.
  9. Write a program to print area of a circle.
  10. Write a program to enter two unequal number and interchange them without using third variable.
  11. Write a program to  display sum, difference, product, quotient and remainder of two      unequal numbers.
  12. Write a program to enter the number of days and display into years, months and days.
  13. Write a program to calculate the gross salary and net salary of an employee when
Looping 
  1. Write a program to print your name ten times
  2. Write a program to find the reverse of a given number.
  3. Write a program to find the sum of first natural numbers.
  4. Write a program to print number of factors of a number
  5. Write a program to print the sum of the factors of a number
  6. Write a program to determine whether a number is prime or not
  7. Write a program to find arthematic sequence
  8. Write a program to print first n Natural numbers
  9. Write a program to print the fibinocci series
  10. Write a program to check whether a number is palindrome or not
  11. Write a program to check whether a number is amstrong or not
  12. Write a program to print the sum of digits of a number
  13. Write a program to evaluate x^n
  14. Write a program to print multiplication of a number
  15. Write a program to print first n odd number
  16. Write a  program to print GCD of 2 numbers 
  17. Write a program to print factorial of a given number.
  18. Write a program to sum of first n terms of an arithmetic sequence.
  19. Write a program to squares of natural numbers between two numbers.
  20. Write a program to find sum of the given series, up to n terms.
  21. Write a program to check whether a given number is Automorphic or not. 
  22. Write a program to read a binary number and print its decimal equivalent.
Nested Loops
  1. Write a program to print all Armstrong numbers below 1000.
  2. Write a program to print all prime numbers in between  two given numbers.
  3. Write a program to print multiplication table of first n numbers upto a given limit.
  4. Write a program to evaluate exponential series.
  5. Write a program to evaluate sine series.
  6. Write a program to evaluate cosine series.
  7. Write a program to print given number is happy or not.
  8. Write a program to check whether a given number is a Special or not. (A number is said to be a special, if the sum of the factorial of the digits is equal to the original number. eg 145 = 1! + 4! + 5! )
  9. Write a program to find sum of the given series, 




                 1 1 1 1 1
                 2 2 2 2 2 
                 3 3 3 3 3
                 4 4 4 4 4
                 5 5 5 5 5

                 1 2 3 4 5
                 1 2 3 4 5
                 1 2 3 4 5
                 1 2 3 4 5
                 1 2 3 4 5


                 1
                 1 2
                 1 2 3
                 1 2 3 4
                 1 2 3 4 5

                 1
                 2 2              
                 3 3 3
                 4 4 4 4
                 5 5 5 5 5
                               * * * * *                                 * * * *                                 * * *                                * *                                *
                1 1 1 1 1
                2 2 2 2
                3 3 3
                4 4
                5
                1 2 3 4 5
                1 2 3 4
                1 2 3
                1 2
                1
                    *
                   * *
                  * * *
                 * * * *
                * * * * *
                        *
                      * *
                    * * *
                  * * * *
                * * * * *


One Dimensional Arrays
  1. Write a program to read an array display it in reverse order.
  2. Write a program to find smallest, largest and second largest element in an array.
  3. Write a program to find the number of occurrence of a given element in an array.
  4. Write a program to sum, average, variance and standard deviation of n elements in an array.
  5. Write a program to reverse an array.
  6. Write a program to count the distinct elements in an array.
  7. Write a program to insert an element to a given position in an array.
  8. Write a program to delete an element from a given position in an array
  9. Write a program to merge two sorted arrays.
  10. Write a program to delete duplicates from an array.
  11. Write a program to find intersection of two arrays
  12. Write a program to rotate an array k places to right.
  13. Write a program to enter n elements and print them in ascending order.
  14. Write a program to print binary equivalent of a decimal number.
  15. Write a program to print hexadecimal equivalent to of a decimal number
Strings(Without using string functions)
  1. Write a program to count no of characters, vowels, words in a string
  2. Write a program to print reverse of a string.
  3. Write a program to swap cases of all characters in a string.
  4. Write a program to check the occurrence of a sub string.
  5. Write a program to replace all occurrence of a sub string with other string.
  6. Write a program to check whether a given string is palindrome or not.
  7. Write a program to find a sum of all integers present in an string.



Two Dimensional Arrays
  1. Write a program to find sum of two matrices
  2. Write a program to find transpose of two matrix.
  3. Write a program to print diagonal elements of a matrix.
  4. Write a program to print off diagonal elements of a matrix.
  5. Write a program to print norm of a matrix.
  6. Write a program to create a matrix and print row wise and column wise total.
  7. Write a program to find biggest and smallest element in each row of a matrix.
  8. Write a program to print pascals triangle.
  9. Write a program to read coordinates of a n sided polygon in a space and print its perimeter
  10. Write a program to print upper triangular matrix.
  11. Write a program to print lower triangular matrix.
  12. Write a program to print a square matrix spiral order

Functions
  1. Write a program to calculate ncr.

 



3 comments:

  1. Please recheck the 5 answer of the 5 th question of simple section and the 14 th question of one dimensional arrays

    ReplyDelete
  2. algebra magic is not working correct it!!!!!!!!!!!!!

    ReplyDelete