Advertisement
Tidall

Untitled

Oct 12th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.13 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Methods
  8. {
  9.     class Program
  10.     {
  11.  
  12.         static void Main(string[] args)
  13.         {
  14.             GetStudentInformation();
  15.             //PrintStudentDetails(firstName, lastName,birthDay);
  16.             Console.WriteLine("{0} {1} {2}", firstName, lastName, birthday);
  17.             Console.ReadKey();
  18.         }
  19.  
  20.         static void GetStudentInformation()
  21.         {
  22.             Console.WriteLine("Enter the student's first name: ");
  23.             string firstName = Console.ReadLine();
  24.             Console.WriteLine("Enter the student's last name");
  25.             string lastName = Console.ReadLine();
  26.             Console.WriteLine("Enter the student's birthday");
  27.             string birthday = Console.ReadLine();
  28.  
  29.             //Console.WriteLine("{0} {1} {2}", firstName, lastName, birthday);
  30.  
  31.         }
  32.  
  33.         static void PrintStudentDetails(string first, string last, string birthday)
  34.         {
  35.             Console.WriteLine("{0} {1} was born on: {2}", first, last, birthday);
  36.         }
  37.  
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement