Skip to content

This is a repository for the solutions of JAVA questions

Notifications You must be signed in to change notification settings

Shradsruhela03/DSA-solutions-

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

DSA-solutions-

This is a repository for the solutions of JAVA questions

  1. Input a year and find whether it is a leap year or not.
  2. Take two numbers and print the sum of both.
  3. Take a number as input and print the multiplication table for it.
  4. Take 2 numbers as inputs and find their HCF and LCM.
  5. Keep taking numbers as inputs till the user enters ‘x’, after that print sum of all.
  6. Write a program to print whether a number is even or odd, also take input from the user.
  7. Take name as input and print a greeting message for that particular name.
  8. Write a program to input principal, time, and rate (P, T, R) from the user and find Simple Interest.
  9. Take in two numbers and an operator (+, -, *, /) and calculate the value. (Use if conditions)
  10. Take 2 numbers as input and print the largest number.
  11. Input currency in rupees and output in USD.
  12. To calculate Fibonacci Series up to n numbers.
  13. To find out whether the given String is Palindrome or not.
  14. To find Armstrong Number between two given number.
  15. Area Of Circle Java Program
  16. Area Of Triangle
  17. Area Of Rectangle Program
  18. Area Of Isosceles Triangle
  19. Area Of Parallelogram
  20. Area Of Rhombus
  21. Area Of Equilateral Triangle
  22. Perimeter Of Circle
  23. Perimeter Of Equilateral Triangle
  24. Perimeter Of Parallelogram
  25. Perimeter Of Rectangle
  26. Perimeter Of Square
  27. Perimeter Of Rhombus
  28. Volume Of Cone Java Program
  29. Volume Of Prism
  30. Volume Of Cylinder
  31. Volume Of Sphere
  32. Volume Of Pyramid
  33. Curved Surface Area Of Cylinder
  34. Total Surface Area Of Cube
  35. Fibonacci Series In Java Programs
  36. Subtract the Product and Sum of Digits of an Integer
  37. Input a number and print all the factors of that number (use loops).
  38. Take integer inputs till the user enters 0 and print the sum of all numbers (HINT: while loop)
  39. Take integer inputs till the user enters 0 and print the largest number from all.
  40. Addition Of Two Numbers
  41. Factorial Program In Java
  42. Calculate Electricity Bill
  43. Calculate Average Of N Numbers
  44. Calculate Discount Of Product
  45. Calculate Distance Between Two Points
  46. Calculate Commission Percentage
  47. Power In Java
  48. Calculate Depreciation of Value
  49. Calculate Batting Average
  50. Calculate CGPA Java Program
  51. Compound Interest Java Program
  52. Calculate Average Marks
  53. Sum Of N Numbers
  54. Armstrong Number In Java
  55. Find Ncr & Npr
  56. Reverse A String In Java
  57. Find if a number is palindrome or not
  58. Future Investment Value
  59. HCF Of Two Numbers Program
  60. LCM Of Two Numbers
  61. Java Program Vowel Or Consonant
  62. Perfect Number In Java
  63. Check Leap Year Or Not
  64. Sum Of A Digits Of Number
  65. Kunal is allowed to go out with his friends only on the even days of a given month. Write a program to count the number of days he can go out in the month of August.
  66. 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

About

This is a repository for the solutions of JAVA questions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%