- Given three points (x1, y1), (x2, y2) and (x3, y3), write a program to check if all the three points fall on one straight line.
- According to the Gregorian calendar, it was Monday on the date 01/01/1900. If any year is input through the keyboard write a program to find out what is the day on 1st January of this year.
- Find the absolute value of a number entered through the keyboard.
- Given the coordinates (x, y) of a center of a circle and it’s radius, write a program which will determine whether a point lies inside the circle, on the circle or outside the circle.
- Take in two numbers and an operator (+, -, *, /) and calculate the value. (Use if conditions)
- Take 2 numbers as input and print the largest number.
- Input currency in rupees and output in USD.
- To find out whether the given String is Palindrome or not.
- To find Armstrong Number between two given number.
- To calculate Fibonacci Series up to n numbers.
- Write a program to input principal, time, and rate (P, T, R) from the user and find Simple Interest.
- Take name as input and print a greeting message for that particular name.
- Any integer is input through the keyboard. Write a program to find out whether it is an odd number or even number.
- Subtract the Product and Sum of Digits of an Integer
- Input a number and print all the factors of that number (use loops).
- Take integer inputs till the user enters 0 and print the sum of all numbers (HINT: while loop)
- Take integer inputs till the user enters 0 and print the largest number from all.
- Calculate Factorial
- Calculate Distance Between Two Points
- Write a program to print the sum of negative numbers, sum of positive even numbers and the sum of positive odd numbers from a list of numbers (N) entered by the user. The list terminates when the user enters a zero.
- Sum Of A Digits Of Number
- Check Leap Year Or Not
- Check Vowel Or Consonant
- LCM Of Two Numbers
- HCF Of Two Numbers Program
- Reverse A String
- Armstrong Number In Java