Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Program {
  4. public static void main(String[] args) {
  5. Scanner sc = new Scanner(System.in);
  6. String name = sc.nextLine();
  7. int population = Integer.parseInt(sc.nextLine());
  8. int area = Integer.parseInt(sc.nextLine());
  9.  
  10. System.out.printf("Town %s has population of %d and area %d square km.", name, population, area);
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement