Question for Brainly Programmers.
Chef went to a shop and buys a pens and b pencils. Each pen costs x units and each pencil costs y units. Now find what is the total amount Chef will spend to buy a pens and b pencils?
Input:
First-line will contain 4 space separated integers a, b, x and y respectively.
Output:
Print the answer in a new line.
Constraints
1≤a,b,x,y≤103
Sample Input 1:
2 4 4 5
Sample Output 1:
28
Sample Input 2:
1 1 4 8
Sample Output 2:
12
EXPLANATION:
In the first example, total cost is (2 * 4 + 4 * 5) = 28.
In the second example, total cost is (1 * 4 + 1 * 8) = 12.
CHOOSE ANY OF THESE LANGUAGES -> C, C++, JAVA, PYTHON, JAVA SCRIPT. CS2, ADA, PYPY, PYP3, TEXT, PAS fpc, RUBY, PHP, NODEJS, GO, TCL, HASK, PERL, SCALA, kotlin, BASH
Answers
Answered by
2
THIS IS ANSWER MARK BRAINLIST IF U LIKE
Attachments:
Answered by
5
Answer:
Cytoplasm is a thick solution that fills each cell and is enclosed by the cell membrane. It is mainly composed of water, salts, and proteins. In eukaryotic cells, the cytoplasm includes all of the material inside the cell and outside of the nucleus.
Similar questions