Advertisement
Felanpro

printf()

Aug 30th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1. import java.util.*;
  2.  
  3. class program1
  4. {
  5.     public static void main(String args[])
  6.     {
  7.         int y = 89;
  8.         int x = 45;
  9.        
  10.         System.out.printf("I have %d cash in my pocket right now and %d cents.", y, x); /*printf("Format", args) allows you to format           your output.*/
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement