Posts

Sale Price Calculator

  # This program will help display selling price after discount for Distibutors / Retailers mrp = input ( "Enter MRP: " ) mrp = int ( mrp ) gst = input ( "Enter GST: " ) gst = int ( gst ) discount = input ( "Enter Discount: " ) discount = int ( discount ) sale_price = ( mrp * 100 )/( 100 + gst ) final_sp = sale_price - ( sale_price *( discount / 100 )) print ( "The Selling price is:" , final_sp )

Multiplication Table Code

  number= int ( input ( "Enter a Number:" )) count = 1 while count <= 20 : product = number * count print (number, "x" , count, "=" , product) count = count+ 1