I am a novice programmer taking an intro to programming course and I have to come up with a program that creates the minimum number of coins for a number entered between 1-99.
I have done this, now I'm trying to output those coins.
scanner Userinput = new Scanner(System.in);
int stuff = Userinput.nextInt();
int q = stuff/quarters;
String A = "Number of Quarters";
System.out.println(A,q);
Now what I want to happen is the output to look like this
Number of Quarters: (whatever my number of quarters is)
I can get it to work by doing
System.out.println("Number of Quarters:");
System.out.println(q);
And it outputs as
Number of Quarters:
(quarters)
I need them to be right next to one another but cannot figure out how to do it?