Computer Science, asked by Haaroon96, 1 year ago

a Java program to display the biodata

Answers

Answered by muakanshakya
39
import java.util.Scanner;
class biodata
{
public static void main(String args[])
{
string name,fathers_name,adrs,mothers_name;
int age;
Scanner sc=new Scanner (System.in);
System.out.println("enter your name- ");
name=sc.nextLine();
System.out.println(" enter your father's name");
fathers_name=sc.nextLine();
System.out.println("enter your mother's name ");
mothers_name=sc.nextLine();
System.out.println(" enter your address");
adrs=sc.nextLine();
System.out.println("enter your age ");
age=sc.nextInt();
System.out.println("output ");
System.out.println(" NAME:"+name);
System.out.println(" FATHERS NAME:"+fathers_name);
System.out.println("MOTHER'S NAME: "+mothers_name);

System.out.println(" AGE:"+age);
System.out.println(" ADDRESS:"+adrs);
}
}








Answered by yuvashree512
5

Explanation:

hhghhvbhh

kgcdxm

.bb

kgg go. n the p to eh we were all

Similar questions