Computer Science, asked by sauravkumarkashyap88, 6 months ago

Though there have been more successful pirates, Blackbeard is one of the best-known and widely-feared of his time. He commanded four ships and had a pirate army of 300 at the height of his career and defeated the famous warship, HMS “Scarborough” in sea-battle. He was known for barreling into battle clutching two swords with several knives and pistols at the ready. He captured over forty merchant ships in the Caribbean and without flinching killed many prisoners. Now, Blackbeard and his three pirates found a treasure of gold coins. Long Ben too joined them. They decided to share the treasure. Blackbeard agreed to give x% share for Long Ben. He then decided to take y% share from the remaining treasure. His other pirates will share the remaining gold coins equally. Write a program to compute their share's.

INPUT FORMAT:

Input consists of 3 integers.

The first input corresponds to the number of gold coins in the treasure.

The second input corresponds to Ben's share percentage and the last input is Blackbeard's share percentage.

OUTPUT FORMAT:

The output consists of three integers.

The first output integer corresponds to Long Ben's share.

The second integer corresponds to Blackbeard's share.

The last integer corresponds to other pirates share.

SAMPLE INPUT:

729

65

87

SAMPLE OUTPUT:

473

222

11





Answers

Answered by ajayyd463
0

Answer:

Edward Teach "Blackbeard" (English, 1680- 1718)

Though there have been more successful pirates, Blackbeard is one of the best-known and widely-feared of his time. He commanded four ships and had a pirate army of 300 at the height of his career, and defeated the famous warship, HMS "Scarborough" in sea-battle.

Explanation:

Mark as brainliest

Answered by sbmshukla
0

Answer:

#include<iostream>

using namespace std;

int main()

{

int g,bp,bbp;

 cin>>g>>bp>>bbp;

 int l,bb,p;

 l=g*bp/100;

 g=g-l;

 bb=g*bbp/100;

 g=g-bb;

 p=g/3;

 cout<<l<<endl<<bb<<endl<<p;

}

Explanation:

Similar questions