Question: C programming help! Write a program using scanf and printf that reads the number of bandits and the amount they want to divide and prints

C programming help!

Write a program using "scanf" and "printf" that reads the number of bandits and the amount they want to divide and prints how much each bandit will get when the amount is divided equally among them. The input is two positive integers and the output will be a single line Each bandit will get $., where is the integral amount allotted to each bandit.

Example of input: 11 20000

Corresponding output: Each bandit will get $1818.

Example of input: 13 100000

Corresponding output: Each bandit will get $7692.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!