Create a program wherein any user should be able to borrow books. Each of the book must have three copies. Indicate how many books are left when they want to borrow a book. Users should be able to check-out and reserve any copy.
My favorite color is blue. What's your favorite color? Never mind it doesn't matter, as long as you know how to identify which color is given.
Instructions:
Input
A line containing a string.
redOutput
A line containing a string.
RedExample
Input: 2343243233
Input: 3
Output: 5
Example
Input: aaa34@raj?where454/
Output: 3
An e-commerce application wants to give discounts to its customers. The discount is calculated as the product of the sum of even numbers and the sum of odd numbers present in the bill. Print the discount that a customer can get.
1. Input: 2345, Output: 48
Explanation: even_sum = 2+4 = 6.
Odd_sum = 3+5 = 8.
Product = 6*8 = 48.
Input:
[22,9, 45, 82, 81, 21]
Output:2
Example
INPUT=257895334; OUTPUT=9
Given a list, add 1 if the given number in the list is even and add 2 if the given number is odd in a given string
Find the largest triangle between the two triangles given the height1, base1, height2, base2.here area of triangle=base*height/2