Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion calculator.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
author: Ravindra Singh Pawar (MT2018093)
*/


/****************Changes made by Saga2149*********************/
/****************Date: 17/01/2019 ****************************/
import java.util.Scanner;

public class calculator
Expand All @@ -19,12 +26,15 @@ public static void main(String args[])
choice = scan.next().charAt(0);
switch(choice)
{
/*This part added by user1*/
case '1' : System.out.print("Enter Two Number : ");
a = scan.nextFloat();
b = scan.nextFloat();
res = a + b;
System.out.print("Result = " + res);
break;
break;

/*This is by user2*/
case '2' : System.out.print("Enter Two Number : ");
a = scan.nextFloat();
b = scan.nextFloat();
Expand Down