writ a c program for company manufactures different types of
software products. They deliver their products
to their N clients. Whenever the company
fulfills the complete order of a client the
orderlD generated is the concatenation of the
number of products delivered for every
committed product type. The head of the sales
team wishes to find the clientwise data for the
total number of products of any type delivered
to every client
Write an algorithm for the head of sales team
to calculate the total number of products of
any type delivered to the respective clients,
write an algorithm for the head of sale
Answers
Answer:
The company trader mart produces several kinds of software. They supply their goods to N different customers. The order ID generated whenever a company completes an entire order for a customer is the concatenation of the quantity delivered for each committed product category. The leader of the sales team is looking for client-specific information regarding the total quantity of products of any kind that were delivered to the specific client.
Create a formula that the head of the sales team can use to determine how many items of each sort have been delivered to the specific client.
Input:
The number of clients is represented by the integer numOfClient on the first line of the input.
The second line has n integers, separated by spaces, that indicate the ordered delivered
Sample input:
4
43 345 20 987
Sample output:
7 12 2 24
Explanation:
The client 0 order two type of products deliver to him/her is 7
Program:
n=int(input())
list1=list(map(int,input().split()))
for item in list1:
list2=list(str(item))
list3=[int(item) for item in list2]
print(sum(list3),end=" ")
See more:
https://brainly.in/question/18600273
#SPJ1