6 Replies
Create a Teacher class with two private variables teacherName and
teacherBirthYear. Create one public method to calculate and print the teacher’s
name and age. You are only allowed to use the read-only property with get
accessor to get the name and year which the teacher was born. Ask for user’s
input for the name and year. Invoke the method. The sample output is as of the
following:
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
how to make it ask the user tow times
to enter the data
Example
enter yout name :
enter your age :
not one line
enter age and name
the pic above it show the it ask only one time
i neeed to use tow writeline
Just separate the lines
Stop inlining so much
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
thank u so much for ❤️
help