Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args)
- {
- StringBuilder lol = new StringBuilder();
- String pd = ".";
- String Msg1 = "Enter a positive integer.";
- String Msg2 = "Enter another positive integer.";
- int x = methods.InputInt(Msg1);
- int y = methods.InputInt(Msg2);
- lol.append("The GCF of ").append(x).append(" and ").append(y).append(" is ").append(GCF(x, y)).append(pd);
- System.out.println(lol.toString());
- }
Add Comment
Please, Sign In to add comment