Advertisement
Guest User

printf Problem

a guest
Apr 27th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. import java.util.Scanner;
  2. import java.io.*;
  3. import java.util.Locale;
  4.  
  5. public class SumOfNumbers {
  6.  
  7.     public static void main(String[] args) {
  8.        
  9.         Scanner input = new Scanner(System.in);
  10.        
  11.         System.out.print("a = ");
  12.         int a = input.nextInt();
  13.        
  14.         System.out.print("b = ");
  15.         int b = input.nextInt();
  16.        
  17.         System.out.printf(" %d", a);
  18.  
  19.     }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement