Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Methods
- {
- class Program
- {
- static void Main(string[] args)
- {
- GetStudentInformation();
- //PrintStudentDetails(firstName, lastName,birthDay);
- Console.WriteLine("{0} {1} {2}", firstName, lastName, birthday);
- Console.ReadKey();
- }
- static void GetStudentInformation()
- {
- Console.WriteLine("Enter the student's first name: ");
- string firstName = Console.ReadLine();
- Console.WriteLine("Enter the student's last name");
- string lastName = Console.ReadLine();
- Console.WriteLine("Enter the student's birthday");
- string birthday = Console.ReadLine();
- //Console.WriteLine("{0} {1} {2}", firstName, lastName, birthday);
- }
- static void PrintStudentDetails(string first, string last, string birthday)
- {
- Console.WriteLine("{0} {1} was born on: {2}", first, last, birthday);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement