DidiHristova93

Untitled

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