---
title: "Discussion on \"Make a Calculator. Take 2 numbers (a & b) from the user .\" | Hashnode"
description: "Discussion on \"Make a Calculator. Take 2 numbers (a & b) from the user .\". 1 : + (Addition) a + b\n\n2 : - (Subtraction) a - b\n\n3 : (Multiplication) a b\n\n4 : / (Division) a / b\n\nBy through switch statement are as follows :\n\n```java\n  import java.util.Scanner;\n  public class App {\n      public static void main(String[] args) t..."
url: "https://hashnode.com/posts/make-a-calculator-take-2-numbers-a-b-from-the-user/641b2db31eb4363aec13a771"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Make a Calculator. Take 2 numbers (a & b) from the user .](https://vaishnavi1511.hashnode.dev/make-a-calculator-take-2-numbers-a-b-from-the-user?utm_source=hashnode&utm_medium=feed)

1 : + (Addition) a + b 2 : - (Subtraction) a - b 3 : (Multiplication) a b 4 : / (Division) a / b By through switch statement are as follows : \`\`\`java import java.util.Scanner; public class App { public static void main(String\[\] args) t...

Mar 22, 2023 · 1 min read · vaishnavi1511.hashnode.dev  
Read the article

-   [#calculator](https://hashnode.com/tag/calculator)
-   [#switch-case](https://hashnode.com/tag/switch-case)
-   [#calculator-in-java](https://hashnode.com/tag/calculator-in-java)

## Written by

[Vaishnavi Shrivastava](https://hashnode.com/@Vaishu1511)

@Vaishu1511

  
[View profile](https://hashnode.com/@Vaishu1511)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
