Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
43 changes: 43 additions & 0 deletions calcadd.java
Original file line number Diff line number Diff line change
@@ -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);

}


}

Empty file removed test
Empty file.