1. Write a program to find maximum between two numbers.
2. Write a program to find maximum between three numbers.
3. Write a program to check whether a number is negative, positive or zero.
4. Write a program to check whether a number is divisible by 5 and 11 or not.
5. Write a program to check whether a number is even or odd.
6. Write a program to check whether a year is leap year or not.
7. Write a program to check whether a character is alphabet or not.
8. Write a program to input any alphabet and check whether it is vowel or
consonant.
9. Write a program to input any character and check whether it is alphabet,
digit or special character.
[Link] a program to check whether a character is uppercase or lowercase
alphabet.
[Link] a program to input week number and print Weekday.
[Link] a program to input month number and print Month name.
[Link] a program to input month number and print number of days in that
month.
[Link] a program to input angles of a Triangle and check whether triangle is
valid or not.
[Link] a program to input all sides of a triangle and check whether triangle
is valid or not.
[Link] a program to check whether a triangle is equilateral, isosceles or
scalene triangle.
[Link] a program to calculate profit% or loss%.
[Link] 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
[Link] a program to input basic salary of any employee and calculate its
Gross salary according to following:
Basic Salary <=10000 : HRA = 20%, DA = 80%
Basic Salary <=20000 : HRA = 25%, DA = 90%
Basic Salary > 20000 : HRA = 30%, DA = 95%
[Link] a program to input Electricity unit charges and calculate total bill
according to the given condition:
For first 50 units Rs. 0.50/unit
For next 100 units Rs. 0.75/unit
For next 100 units Rs. 1.20/unit
For unit above 250 Rs. 1.50/unit
An additional surcharge of 20% is added to the bill.
Looping
[Link] a program to print all natural numbers from 1 to n.
[Link] a program to print all natural numbers in reverse order( From n to 1).
[Link] a program to print all alphabets from a to z.
[Link] a program to print all even numbers between 1 to 100.
[Link] a program to print all odd numbers between 1 to 100.
[Link] a program to find sum of all natural numbers between 1 to n.
[Link] a program to find sum of all even numbers between 1 to n.
[Link] a program to find sum of all odd numbers between 1 to n.
[Link] a program to print multiplication table of any number.
[Link] a program to count number of digits in a number.
[Link] a program to find first and last digit of a number.
[Link] a program to find sum of first and last digits of a number.
[Link] a program to calculate sum of digits of a number.
[Link] a program to calculate product of digits of a number.
[Link] a program to enter a number and print its reverse.
[Link] a program to check whether a number is palindrome or not.
[Link] a program to enter a number and print it in words.
[Link] a program to find power of a number using loop.
[Link] a program to calculate Factorial of a number.
[Link] a program to find all factors of a number.
[Link] a program to check whether a number is prime or not.
[Link] a program to check whether a number is Armstrong number or not.
[Link] a program to print Fibonacci series up to n terms.
[Link] a program to convert Binary to Decimal Number system.
[Link] a program to convert Decimal to Binary Number system.
[Link] a program to print star patterns.
[Link] a program to Print Number patterns.