diff --git a/README.md b/README.md index b73de76..e6f93ed 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,4 @@ Sign your name in the list below - [Rajula Vineet Reddy](http://github.com/rajula96reddy/) - IMT2014045 +- [Raghavarapu Venkateswararao](https://github.com/venky1906/) - IMT2015036 diff --git a/calcadd.java b/calcadd.java new file mode 100644 index 0000000..f51a3ef --- /dev/null +++ b/calcadd.java @@ -0,0 +1,43 @@ +import java,util.Scanner; + public class caladd { + public static vid main(String args[]){ + float a, b, res; + char choice, ch; + Scanner scan = new Scanner(System.in) + + do { + System.out.print("1.ADD TWO Numbers\n"); + System.out.print("2.EXIT\n\n"); + System.out.print("Enter Your chice : "); + choice = scan.next().charAt(0); + switch(choice){ + case '1' : System.out.print("Enter Two number :") + a = scan.nextFloat(); + b = scan.nextFloat(); + res = a+b; + System.out.print("Result =" + res); + break; + + case '2' : System.exit(0); + break; + case '3' : System.out.print("Enter Two number :") + a = scan.nextFloat(); + b = scan.nextFloat(); + res = a-b; + System.out.print("Result =" - res); + break; + + default : System.out.print("INVALID CHOICE !!!"); + break; + + } + + System.out.print("\n--------------\n"); + + }while(choice != 2); + + } + + + } + diff --git a/test b/test deleted file mode 100644 index e69de29..0000000