Computer Science, asked by kunalmk2005, 1 year ago

write a java program to give your details

Answers

Answered by namithaaa
1
import java.io.*;
public class Details
{
public static void main (String args[])
throws IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter your name");
String na=br.readLine();
System.out.println("Enter your place");
String p=br.readLine();
System.out.println("enter age in number");
int age=Integer.parseInt(br.readLine());
System.out.println("Name:"+na+"\t"+"Age:"+age);

namithaaa: }}
Sorry this should be added to the program at last.☝️
Similar questions