aleyaj9698 aleyaj9698
  • 03-04-2021
  • Computers and Technology
contestada

Ask the user to input a country name. Display the output the message "I would love to go to [country]"

Respuesta :

nerd1232 nerd1232
  • 03-04-2021

Answer:

import java.util.Scanner;

public class Country{

public static void main (String[] args){

Scanner input = new Scanner(System.in);

System.out.print("Input a country name: ");

String country = input.nextLine();

System.out.println("I would love to go to " + country);

}

}

Explanation:

Answer Link

Otras preguntas

BMI is used to screen for
how old am i if 200 reduced by 2 times my age is 16
a teacher wants to give 3 markers to each of her 25 students. Markers come in packeges of 8 how many packages of markers will the teacher need
Please guys can you help on this word problem I'm stuck on it
The base of a triangle is 3 cm longer than its altitude. The area of the triangle is 35cm^2. Find the altitude. (Hint: use the area of a triangle. 1/2 * base *
what is the greatest common factor of 48 and 54
a Norfolk pine is 18 inches tall and grows at a rate of 1.5 feet per year
a pond is 0.03 meters thick.if the pond were 10 times thick how many meters thick would the ice be?
in scoole i need to know whats 14.6 divided by 2
What is 10/9 closest to 0,1/2, or 1 and why