Program To Calculate Profit or Loss - C# Program

If cost price and selling price of an item is input through the keyboard, write a program to determine whether the seller has made profit or incurred loss. Also determine how much profit he made or loss he incurred.

using System;
namespace ProfitLossDemo
    class Program
        static void Main(string[] args)
            float cp, sp;
            Console.Write("Enter Cost Price :");
            cp = Convert.ToSingle(Console.ReadLine());
            Console.Write("Enter Selling Price :");
            sp = Convert.ToSingle(Console.ReadLine());
            if (sp > cp)
                Console.WriteLine("Got Profit : {0}", sp - cp);
            else if (cp > sp)
                Console.WriteLine("Got Loss :{0}", cp - sp);
                Console.WriteLine("Got No Profit No Loss");

Output - Program To Calculate Profit or Loss

Enter Cost Price : 1000
Enter Selling Price : 1500

Got Profit : 500