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