School
You want to display your bio-data on the output screen write program in
Java to perform the task in the given format:
Name
Father's Name
Date of birth
Blood Group
Aadhar Card No:
State
Answers
Answered by
7
Answer:
Explanation:
import java.util.Scanner;
public class Details{
public static void main(String []arg){
Scanner s=new Scanner(System.in);
//enter the details
name=s.next();
fatherName=s.next();
dob=s.next(); //in dd/mm/yyyy format
bloodgrp=s.next();
aadhar=s.nextInt();
state=s.next();
System.out.println("Name : "+name);
System.out.println("Father's Name : "+fatherName);
System.out.println("Date of birth : "+dob);
System.out.println("Bolld Group : "+bloodgrp):
System.out.println("Aadhar Card No. : "+aadhar);
System.out.println("State : "+state);
}
}
Answered by
5
Answer:
hope u understood my handwriting
Explanation:
mark me as brainliest
Attachments:
Similar questions