Advertisement
mrScarlett

Double Sum

Aug 30th, 2016
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. /**
  2. * Write a description of class DoubleSum here.
  3. *
  4. * @author (your name)
  5. * @version (a version number or a date)
  6. */
  7. public class DoubleSum
  8. {
  9. public static void main (String[] args){
  10. System.out.println('\f');
  11. int a=1, b=1;
  12. if (a==b) {
  13. System.out.println((a+b)*2);
  14. }else
  15. System.out.println(a+b);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement