Science, asked by ashiyanmanawar28, 24 days ago

write a program in Java to print your father and mother name​

Answers

Answered by ItzBabygirl26
0

Answer:

import java.util.Scanner;

public class Details{

 public static void main(String [] args){

 Scanner s =new Scanner(system.in);

 name=s.nextLine();

 fatherName=s.nextline();

 motherName=s.nextLine();

 schoolName=s.nextLine();

 System.out.println("Name : "+name);

 System.out.println("Father's Name : "+fatherName);

 System.out.println("Mother's Name : "+motherName);

    }

}

Similar questions