During festival season, a supermarket owner decided to provide a gift voucher Total discount to customer code asked in wipro feb 2022

 During festival season, a supermarket owner decided to provide a gift voucher to all their customers. The amount of the gift voucher is to be decided by the difference between the sum of all the even digits and the sum of all the odd digits from the customers' total bill amount. The supermarket owner would like to have an automated system which will calculate and provide the gift voucher amount for each customer. 19 20 21 22 23 Write an algorithm to make an automated system which will find the gift voucher amount for each customer.



Comments

Popular posts from this blog

EV Minimize Array Cost asked in Infosys- march 2022 (available in c++ only)

Chomsky's hierarchy Explanation :

Given an array A, find the size of the smallest subarray asked in MountainBlue, 2022