Output in ruby
"puts" writes to the screen with a carriage return at the end.
"print" does the same thing without the carriage return.
"printf" formats variables like in C and Java 5. Run It Now!
The below example demonstrates how to use modifiers in java.
The example allows the user to view calorie difference of the specified chocolates.
Run It Now!