Program Collections
Simple
- Write a program to print ' HELLO WORLD!!! '.
- Write a program to print average of three numbers.
- Write a program to find the sum and average of three numbers.
- Write a program to print a pyramid of stars.
- Write a program to convert the time entered in seconds to hours,minutes,seconds.
- Write a program to print the size of each datatype with its name in a table.
- Write a program to find the hexal and octal value of a number.
- Write a program to print the area and perimeter of a triangle.
- Write a program to print area of a circle.
- Write a program to enter two unequal number and interchange them without using third variable.
- Write a program to display sum, difference, product, quotient and remainder of two unequal numbers.
- Write a program to enter the number of days and display into years, months and days.
- Write a program to calculate the gross salary and net salary of an employee when
Conditional Branching
- Write a program to print biggest of the two numbers
- Write a program to print biggest among three numbers.
- Write a program to print grade corresponding to your mark.
- Write a program to find distance between two numbers on a number line
- Write a program to check whether the number is two digit
- Write a program to print the days of a week using switch operator
- Write a program to enter a character and display its opposite case.
- Write a program check whether a given character is alphabet, digit, or a special character
Looping
- Write a program to print your name ten times
- Write a program to find the reverse of a given number.
- Write a program to find the sum of first natural numbers.
- Write a program to print number of factors of a number
- Write a program to print the sum of the factors of a number
- Write a program to determine whether a number is prime or not
- Write a program to find arthematic sequence
- Write a program to print first n Natural numbers
- Write a program to print the fibinocci series
- Write a program to check whether a number is palindrome or not
- Write a program to check whether a number is amstrong or not
- Write a program to print the sum of digits of a number
- Write a program to evaluate x^n
- Write a program to print multiplication of a number
- Write a program to print first n odd number
- Write a program to print GCD of 2 numbers
- Write a program to print factorial of a given number.
- Write a program to sum of first n terms of an arithmetic sequence.
- Write a program to squares of natural numbers between two numbers.
- Write a program to find sum of the given series, up to n terms.
- Write a program to check whether a given number is Automorphic or not.
- Write a program to read a binary number and print its decimal equivalent.
- Write a program to print all Armstrong numbers below 1000.
- Write a program to print all prime numbers in between two given numbers.
- Write a program to print multiplication table of first n numbers upto a given limit.
- Write a program to evaluate exponential series.
- Write a program to evaluate sine series.
- Write a program to evaluate cosine series.
- Write a program to print given number is happy or not.
- 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! )
- Write a program to find sum of the given series,
- Write a program to print the following output
- Write a program to print the following pattern *
- Write a program to print the following pattern
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
* *
* * *
* * * *
* * * * *
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
- Write a program to read an array display it in reverse order.
- Write a program to find smallest, largest and second largest element in an array.
- Write a program to find the number of occurrence of a given element in an array.
- Write a program to sum, average, variance and standard deviation of n elements in an array.
- Write a program to reverse an array.
- Write a program to count the distinct elements in an array.
- Write a program to insert an element to a given position in an array.
- Write a program to delete an element from a given position in an array
- Write a program to merge two sorted arrays.
- Write a program to delete duplicates from an array.
- Write a program to find intersection of two arrays
- Write a program to rotate an array k places to right.
- Write a program to enter n elements and print them in ascending order.
- Write a program to print binary equivalent of a decimal number.
- Write a program to print hexadecimal equivalent to of a decimal number
Strings(Without using string functions)
- Write a program to count no of characters, vowels, words in a string
- Write a program to print reverse of a string.
- Write a program to swap cases of all characters in a string.
- Write a program to check the occurrence of a sub string.
- Write a program to replace all occurrence of a sub string with other string.
- Write a program to check whether a given string is palindrome or not.
- Write a program to find a sum of all integers present in an string.
Two Dimensional Arrays
- Write a program to find sum of two matrices
- Write a program to find transpose of two matrix.
- Write a program to print diagonal elements of a matrix.
- Write a program to print off diagonal elements of a matrix.
- Write a program to print norm of a matrix.
- Write a program to create a matrix and print row wise and column wise total.
- Write a program to find biggest and smallest element in each row of a matrix.
- Write a program to print pascals triangle.
- Write a program to read coordinates of a n sided polygon in a space and print its perimeter
- Write a program to print upper triangular matrix.
- Write a program to print lower triangular matrix.
- Write a program to print a square matrix spiral order
Functions
Please recheck the 5 answer of the 5 th question of simple section and the 14 th question of one dimensional arrays
ReplyDeletealgebra magic is not working correct it!!!!!!!!!!!!!
ReplyDeleteVery informative programming
ReplyDeletearticle....