Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class ObtenirInformacioUsuari {
- public static void main(String[] args) {
- String nom; int edat;
- Scanner teclat = new Scanner(System.in);
- System.out.print(“Si us plau entri el seu nom >> “);
- nom = teclat.nextLine();
- System.out.print(“Si us plau entri la seva edat >> “);
- edat = teclat.nextInt();
- System.out.println(“El teu nom és “ + nom + “ i tens “ + edat);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement