DEV Community

Cover image for Today I have attempted 5 java programming exercises 😊.
Rafeek01
Rafeek01

Posted on

1

Today I have attempted 5 java programming exercises 😊.

  1. Java program to print the sum (addition), multiply, subtract,
    divide and remainder of two numbers.

  2. Java program that takes a number as input and prints its
    multiplication table up to 10.

  3. Java program to display the following pattern.
    Sample Pattern :
    Image description

  4. Java program to compute the specified expressions and
    print the output.
    Test Data:
    ((25.5 * 3.5 - 3.5 * 3.5) / (40.5 - 4.5))

  5. Java program to compute a specified formula.
    Specified Formula :
    4.0 * (1 - (1.0/3) + (1.0/5) - (1.0/7) + (1.0/9) - (1.0/11))


> Exercise from w3resourse

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay