0

How to create a Java program that accepts a name, age and year of birth and then outputs it?

Help

19th Sep 2020, 9:35 AM
Jul Maglinte
Jul Maglinte - avatar
9 Antworten
+ 3
Jul Maglinte kindly share your attempt Firstly then only we can help you. Hope you'll share the attempt. but yeah I'll give you some resources if you wanna actually learn this thing. here these are - https://code.sololearn.com/cPpVdbS2xbey/?ref=app https://code.sololearn.com/c9aXq79t1q8V/?ref=app https://code.sololearn.com/cePb2xb04CPB/?ref=app I hope this will help ✌️
19th Sep 2020, 9:39 AM
Piyush
Piyush - avatar
+ 3
import java.util.*; class prg { public static void main() { Scanner s=new Scanner(System.in); System.out.println("Enter your name :"); String st=s.nextLine(); System.out.println("Enter your age :"); int age=s.nextInt(); System.out.println("Enter your year of birth :"); String yr=s.nextLine(); System.out.println("Name :"+st); System.out.println("Age :"+age); System.out.println("Year of birth :"+yr); } } Hope it works for you! Thank you 🙂.
20th Sep 2020, 7:23 AM
SHREYA UPADHYAY
SHREYA UPADHYAY - avatar
+ 2
Take input string as a name ,one int variable for age and other variable for year of birth and display it by using System.out.println("name "+name) Age and birth
19th Sep 2020, 9:48 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
What is the output
1st Dec 2022, 11:21 AM
Gulfam Saifi
Gulfam Saifi - avatar
0
Where is your attempt ?
19th Sep 2020, 9:37 AM
Arsenic
Arsenic - avatar
0
Shucayb
20th Nov 2021, 7:55 PM
prince shucayb
0
Write a Java program that fully demonstrate single dimensional array.
11th Sep 2023, 4:27 AM
Ahmad Yahaya Wizard
Ahmad Yahaya Wizard - avatar
0
import java.util.Scanner; public class Userinformation { public static void main(String[] args) { Scanner s= new Scanner(System.in); System.out.println("Enter Your Name: "); String st=s.nextLine(); System.out.println("Enter Your Age: "); int age=s.nextInt(); System.out.println("Enter Your Class Name: "); int classname=s.nextInt(); System.out.println("Name"+st); System.out.println("Age"+age); System.out.println("Class"+classname); } }
16th Feb 2024, 7:47 AM
Anuj Upadhyay
Anuj Upadhyay - avatar
0
Xhh
21st Aug 2024, 10:26 AM
23ITR007 ARULSELVAM
23ITR007 ARULSELVAM - avatar