Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class timefun
- {
- public static void main (String[] args)
- {
- int Num1;
- int Num2;
- int choice;
- do
- {
- System.out.println("please enter 2 muber");
- Num1 = ITI1120.readInt();
- Num2 = ITI1120.readInt();
- System.out.println("the sum is " + Num1 +Num2);
- System.out.println("Do you want to try again? Y or N");
- choice = ITI1120.readChar();
- while (choice != āNā);
- }
- }
- }
Add Comment
Please, Sign In to add comment