Guest User

Untitled

a guest
Feb 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. class timefun
  2. {
  3. public static void main (String[] args)
  4. {
  5.  
  6. int Num1;
  7. int Num2;
  8. int choice;
  9.  
  10. do
  11. {
  12. System.out.println("please enter 2 muber");
  13. Num1 = ITI1120.readInt();
  14. Num2 = ITI1120.readInt();
  15. System.out.println("the sum is " + Num1 +Num2);
  16. System.out.println("Do you want to try again? Y or N");
  17. choice = ITI1120.readChar();
  18. while (choice != ā€˜Nā€™);
  19. }
  20.  
  21. }
  22.  
  23. }
Add Comment
Please, Sign In to add comment