Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Practice
- {
- class Program
- {
- static void Main(string[] args)
- {
- PrintReciept();
- }
- private static void PrintReciept()
- {
- PrintHeader();
- PrintBody();
- PrintFooter();
- }
- private static void PrintFooter()
- {
- Console.WriteLine(new string ('-', 12));
- Console.WriteLine('\u00A9'+ "SoftUni");
- }
- private static void PrintBody()
- {
- Console.WriteLine("Charged to");
- Console.WriteLine("Received by");
- }
- private static void PrintHeader()
- {
- Console.WriteLine("CASH RECIEPT" + Environment.NewLine + new string ('-', 12));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment