Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 536 Bytes

File metadata and controls

14 lines (11 loc) · 536 Bytes

Write Java programs for the following:

  1. Write a program to print whether a number is even or odd, also take input.
  2. Take name as input and print a greeting message for that name.
  3. Write a program to input principle, time and rate (P, T, R) from user and find Simple Interest.
  4. Take in two numbers and an operator (+, -, *, /) and calculate the value. (Use if conditions)
  5. Take 2 numbers as input and print the largest number.
  6. Input currency in rupee and output in dollar.