Log in

View Full Version : Java


sindujamanoj
Nov 4, 2016, 07:35 AM
Write a program to accept a set of son, father names and print the number of grandchildren for the given person.The program can assume that the names are all unique and represented with only one letter.
(R,K) (S,K) (J,K),(L,P),(G,K),(T,R),(M,G)
Eg:
Person name: K
Output:
K has 3

Curlyben
Nov 4, 2016, 08:45 AM
What do YOU think ?
While we're happy to help, we wont do all the work for you.

ma0641
Nov 5, 2016, 09:00 AM
Write a program.
I think that means YOU.