Skip to content

Commit a8be993

Browse files
committed
Update General_purpose_calc.java
1 parent 6b4e9b8 commit a8be993

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

General_purpose_calc.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ else if(tas345 == 4)
232232
}
233233
else
234234
{
235-
System.out.println(" ERROR --> 6 or more terms are not supported ");
236-
}
235+
System.out.println(" ERROR --> \n> You might have entered a character instead of a number \n> Or you might have entered a number greater than 5 \n> Please note 6 or more terms are not supported yet !");
236+
}
237237
}
238238
else if(ch1 == '3') // This part gets executed if user enters "3"
239239
{
@@ -321,7 +321,7 @@ else if(ch1 == '6')
321321
double crPA = 2 * 3.14159 * crP;
322322
System.out.println(" Your answer is --> " + crPA ); // value accurate upto 3 decimals only
323323
break;
324-
default :System.out.println(" ERROR --> 4 or more terms are not supported ");
324+
default :System.out.println(" ERROR --> Unknown choice ");
325325
}
326326
}
327327
else if(ch1 == 'v' || ch1 == 'V')

0 commit comments

Comments
 (0)