Respuesta :

ijeggs

Answer:

import java.util.Scanner;

public class num3 {

   public static void main(String[] args) {

       char c;

       Scanner in = new Scanner(System.in);

       c = in.nextLine().charAt(0);

   }

}

Explanation:

  1. Using Java Programming language.
  2. Variable c of type char is declared
  3. Scanner class is imported to receive user input
  4. the string method nextLine is used to read an entire line including whitespace
  5. charAt(0) returns the first character which is assigned to c