BASIC PROGRAMS
- Program to check whether the given number is positive, negative or zero.
- Program to find largest number between two numbers.
- Program to find largest number between three numbers.
- Program to find second largest number between three numbers.
- Program to print wishes according to the time given in hours.
- Program to check whether given alphapet is vowel or consonant.
- Program to check whether given character is alphabet, digit or symbol.
- Write a program to input marks of five subjects Physics, Chemistry, Biology, Mathematics and Computer. Calculate percentage and grade according to following:
Percentage >= 90% : Grade A
Percentage >= 80% : Grade B
Percentage >= 70% : Grade C
Percentage >= 60% : Grade D
Percentage >= 40% : Grade E
Percentage < 40% : Grade F - Program to read a single digit number and print in words.
- Program to display number of days in a given month.
- Program to print natural numbers from 1 to N.
- Program to print natural numbers from N to 1.
- Program to find sum of N natural numbers.
- Program to display multiplication table of a given number.
- Program to count number of digits of a given number.
- Program to find sum of digits of a given number.
- Program to find reverse of a given number.
- Program to check whether given number is palindrome or not.
- Program to find factorial of given number.
- Program to check whether a number is prime or not.
PROGRAMS ON ARRAYS
- Program to find sum of array elements.
- Program that calculate the fractions of its elements that are positive, negative and zeros.
- Program to insert an element at given position in array.
- Program to delete an element from an array at specified position.
- Program to reverse of array elements.
- Program to remove duplicates in array.
- Program to move first element to last in array.
- Program to count the frequency of each element of an array.
- Program to sort the elements in array.
- Program to find second smallest and second largest numbers from array.
- Program for left rotate of array.
- Program for right rotate of array.
- Program to find duplicate element in k-distance. If found print "YES" otherwise "NO".