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 Declaring_and_Invoking_Methods
- {
- class Declaring_and_Invoking_Methods
- {
- static void Main(string[] args)
- {
- PrintReceipt();
- }
- private static void PrintReceipt()
- {
- PrintHeader();
- PrintBody();
- PrintFooter();
- }
- private static void PrintHeader()
- {
- Console.WriteLine("CASH RECEIPT");
- Console.WriteLine("------------------------------");
- }
- private static void PrintBody()
- {
- Console.WriteLine("Charged to____________________");
- Console.WriteLine("Received by___________________");
- }
- private static void PrintFooter()
- {
- Console.WriteLine("------------------------------");
- Console.WriteLine("\u00a9 SoftUni");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement