generate functionTue, 25 Jul 2023

un programa con scanner

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("please enter a number") int x = sc.nextInt(); System.out.println("you entered: " + x); } }

Want to kickstart your project?Use the new AI Studio to create your code