Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Program {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- String name = sc.nextLine();
- int population = Integer.parseInt(sc.nextLine());
- int area = Integer.parseInt(sc.nextLine());
- System.out.printf("Town %s has population of %d and area %d square km.", name, population, area);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement